When safe_mode and open_basedir are enabled, use the following statement in the program:
Curl_setopt ($ curl, curlopt_followlocation, 1 );
Is there a 301,302 status error?
[14:17:41] PHP warning: curl_setopt (): curlopt_followlocation cannot be activated when in safe_mode or an open_basedir is set in MSN. Class. php on line 819
The solution is to use the curl statement instead of curl_setopt ($ ch, curlopt_followlocation, true), or change it to 0, and define a function in the PHP function.
Curl_redir_exec Function
Curl_redir_exec
Curl_redir_exec ($ ch) replace curl_setopt ($ ch, curlopt_followlocation, true) Statement
Refer:
Http://spoint.babyshoot.cn/archives/2009/11/curlopt-php.html
Http://www.php.net/manual/en/function.curl-setopt.php
Curl_setopt (): curlopt_followlocation cannot be activated when in safe_mode or an open_basedir is set in