Closed Thread
Results 1 to 4 of 4

Thread: CURLOPT_FOLLOWLOCATION cannot be activated

  1. #1
    yokivo86 is offline x10Hosting Member yokivo86 is an unknown quantity at this point
    Join Date
    Sep 2011
    Posts
    2

    CURLOPT_FOLLOWLOCATION cannot be activated

    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

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: CURLOPT_FOLLOWLOCATION cannot be activated

    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.

  3. #3
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,505

    Re: CURLOPT_FOLLOWLOCATION cannot be activated

    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.

  4. #4
    yokivo86 is offline x10Hosting Member yokivo86 is an unknown quantity at this point
    Join Date
    Sep 2011
    Posts
    2

    Re: CURLOPT_FOLLOWLOCATION cannot be activated

    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".

Closed Thread

Similar Threads

  1. CURLOPT_FOLLOWLOCATION cannot be activated
    By majidemo95 in forum Free Hosting
    Replies: 3
    Last Post: 03-11-2011, 10:54 PM
  2. Activated but no
    By chicopro in forum Free Hosting
    Replies: 3
    Last Post: 07-09-2010, 10:36 PM
  3. not activated
    By Pablo in forum Free Hosting
    Replies: 2
    Last Post: 11-05-2006, 10:34 AM
  4. Did you get activated!? =O
    By Makubex in forum Off Topic
    Replies: 6
    Last Post: 09-17-2006, 11:54 PM
  5. Activated, but still nothing
    By ericsbored in forum Free Hosting
    Replies: 6
    Last Post: 09-13-2005, 12:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers