CURLOPT_FOLLOWLOCATION cannot be activated

Status
Not open for further replies.

yokivo86

New Member
Messages
2
Reaction score
0
Points
0
when I try running my script I am facing following error. kindly help me resolve this:

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
You have to edit the script to remove the offending line.

It only matters if the page you are requesting gives a 301 or 302 error.
 

yokivo86

New Member
Messages
2
Reaction score
0
Points
0
though removing offending line does remove the warning msg but it doesn't come up with required results. curl_exec() doesn't work properly with out setting "FOLLOWLOCATION". :frown::frown:
 
Status
Not open for further replies.
Top