tags:

views:

56

answers:

1

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 appreciate any help given, thank you!

A: 

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))
jasonbar
I never would've thought about that! Thank you!
Billy