-
Junior Member
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
-
Super Moderator
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.
-
Junior Member
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???
-
Super Moderator
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.
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
Forum Rules