allow_url_include=0ff

Standard

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 'http://domain.site.com?query='.$_GET['query'];

to…

$url = 'http://domain.site.com?query='.$_GET['query'];
	echo ($this->Getter($url));

boom.