This is a highly annoying place to be, when you want to include from a url – which i know is a security scare, but when you know its safe, i.e. you know who could have access it is fine; but you cant because the server is locked down.

It was a seek and a find that led me to this


public function Getter($url){
	$ch = curl_init( $url );
	curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
	curl_setopt( $ch, CURLOPT_HEADER, false );
	curl_setopt( $ch, CURLOPT_NOBODY, false );
	$content = curl_exec( $ch );
	curl_close( $ch );
	return $content;


Basically, a curl to remove the need of the include. So my include went from…

include ''.$_GET['query'];


$url = ''.$_GET['query'];
	echo ($this->Getter($url));