CURLOPT_FOLLOWLOCATION cannot be activated

Viewed 97133

So I keep getting this annoying error on multiple servers(its a warning, so I'd ignore it, but I need the function)

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/xxx/public_html/xxx.php on line 56

How would I go about fixing this via SSH?

5 Answers

To solve this problem, simply put safe_mode = Off and clear open_base_dir at php.ini file.

Related