allowurlfopen Has Been Disabled on Our Servers
For security reasons, we've globally disabled allowurlfopen in the default php.ini files. This will not affect most sites, but for some, it will cause some PHP pages to stop working as expected. There is no way to override this change. Pages and functionality relying on allowurlfopen will need to be adjusted to use another means of remote file access.
There are other, safer means of accessing remote data. One such method is using cURL. cURL is built into php and is much safer (and generally better performing!) than fopen. A general overview of how to use cURL with php can be found here:
http://www.codeandcoffee.com/2006/07/17/how-to-use-curl-with-php/
If you'd like to attempt to replace fopen calls with cURL calls, you can try using the sample code found on the php.net fopen manual page:
http://us2.php.net/manual/en/function.fopen.php#55922
The below function approximates what fopen does, and allows you to get around using allowurlfopen. You will, however, have to adapt your php code to use the function.
/*
* @return string
* @param string $url
* @desc Return string content from a remote file
* @author Luiz Miguel Axcar (lmaxcar@yahoo.com.br)
*/
function getcontent($url) {
$ch = curlinit();
curlsetopt ($ch, CURLOPTURL, $url);
curlsetopt ($ch, CURLOPTHEADER, 0);
obstart();
curlexec ($ch);
curlclose ($ch);
$string = obgetcontents();
obend_clean();
return $string;
}
#usage:
$content = getcontent ("http://www.php.net");
vardump ($content);