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
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
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.
Nothing is always absolutely so.
A web search will turn up workarounds that handle redirects.
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.
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".![]()