Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/path/curl.php on line 594
I don't have access to php.ini. Can this be fixed without editing php.ini?
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/path/curl.php on line 594
I don't have access to php.ini. Can this be fixed without editing php.ini?
See this comment in the manual. It provides an ugly workaround. I believe this restriction is effect because of a bug in the curl library where it would follow redirects to local resources, but that should be fixed by now, so I see no reason for this restriction.
safe_mode
belongs to PHP_INI_SYSTEM
- so if that's the issue, you're out of luck, these items can only be set in php.ini and vhost config.
open_basedir
belongs to PHP_INI_ALL
, so you could set it in .htaccess
using php_value
.