开发者

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))
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜