+ Reply to Thread
Results 1 to 4 of 4

Thread: Curl and safe-mode warning

  1. #1
    Junior Member prettyblackish is on a distinguished road
    Join Date
    Sep 2011
    Posts
    2

    Question Curl and safe-mode warning

    how to override this warning?

    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/iamval/domains/iamvalued.clod5.com/public_html/t.php on line 2

    i'm getting this warning whenever i use Curl

    any suggestion?

    thanx in advance

  2. #2
    Super Moderator Modestas is on a distinguished road Modestas's Avatar
    Join Date
    Jun 2011
    Posts
    1,859

    Re: Curl and safe-mode warning

    Hello,

    Error says that CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/iamval/domains/iamvalued.clod5.com/public_html/t.php on line 2. Check this file in line 2 for open_basedir and try to unset it.

  3. #3
    Junior Member prettyblackish is on a distinguished road
    Join Date
    Sep 2011
    Posts
    2

    Re: Curl and safe-mode warning

    thanx u for ur reply, but i am still facing some problem
    can u plz solve this?

    code at line 2 is :
    ---curl_setopt ($curl, CURLOPT_FOLLOWLOCATION, 1);---
    (this code is working form localhost using wamp)

    i tried to remove it, and no error comes to output
    but this is stopped working from the code

    ---stripos(curl_getinfo($curl, CURLINFO_EFFECTIVE_URL), "home.asp");---

    what can i do for this???

  4. #4
    Super Moderator Modestas is on a distinguished road Modestas's Avatar
    Join Date
    Jun 2011
    Posts
    1,859

    Re: Curl and safe-mode warning

    Can you give me file name where this code is located ? I can't find this file /home/iamval/domains/iamvalued.clod5.com/public_html/t.php in your account.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34