CURLOPT_FOLLOWLOCATION cannot be activated [duplicate]

Set safe_mode = Off in your php.ini file (it’s usually in /etc/ on the server). If that’s already off, then look around for the open_basedir stuff in the php.ini file, and change it accordingly.

Basically, the follow location option has been disabled as a security measure, but PHP’s built-in security features are usually more annoying than secure. In fact, safe_mode is deprecated in PHP 5.3.

Leave a Comment