fopen: Fatal error: Can't use function return value in write context in
I cannot seem to be able to figure out why I receive: Fatal error: Can't use function return value in write context in [path]/admincp/global.php(226) : eval()'d code on line 12 when I try to use fopen/fsockopen, and such functions to retrieve remote data.
My code is:
http://pastebin.com/crLB429N
I have tried using fopen/fread, and fsockopen/fgets. I don't even know where to start to debug this.
I would appr开发者_如何学Ceciate any help given, thank you!
empty() can only evaluate variables - not function return values. Your first conditional is using empty(ini_get(...))
Try:
$base_dir = ini_get('open_basedir');
if(function_exists('curl_init') && !ini_get("safe_mode") && empty($base_dir))
精彩评论