How can i solve this issue?
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/xxxxxx/public_html/curl.php on line 11
HTTP error: 301.
Any solution for this using htaccess or any other method?
CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode
Moderator: General Moderators
- mrvijayakumar
- Forum Commoner
- Posts: 58
- Joined: Tue Aug 18, 2009 12:39 am
- Location: Chennai city, India
- Contact:
Re: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode
I don't think you can modify this ini setting at runtime, since it's a security setting.
You have to disable open_basedir (I assume you have safe mode off anyway) in php.ini. Is it your own server?
You have to disable open_basedir (I assume you have safe mode off anyway) in php.ini. Is it your own server?
- mrvijayakumar
- Forum Commoner
- Posts: 58
- Joined: Tue Aug 18, 2009 12:39 am
- Location: Chennai city, India
- Contact:
Re: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode
Thanks for replying,
Yes, its my own server. This is possible only php.ini? If means what i want to change in php.ini?
And also, i don't have access to php.ini. What i can do? any solution.
Yes, its my own server. This is possible only php.ini? If means what i want to change in php.ini?
And also, i don't have access to php.ini. What i can do? any solution.
Re: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode
If it's your own server, you can open and edit php.ini surely?!
where it haschange that to
where it has
Code: Select all
open_basedir = *something*Code: Select all
open_basedir = none- mrvijayakumar
- Forum Commoner
- Posts: 58
- Joined: Tue Aug 18, 2009 12:39 am
- Location: Chennai city, India
- Contact:
Re: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode
Thanks for info, i contacted my web hoster to solve this issue. They solved it and give me. Thanks for guiding me.
Re: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode
Cool, no problem.