Hello
I have a script which uses CURL to create a database using CPANEL.
But it is giving the following error message:
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/aquarius/public_html/createdb/includes/ecurl.class.php on line 35
It is not an issue with Safe mode as safe mode is off. The error is with '....open_basedir is set'
I found a (I think) relevant post at this site:
http://www.web-development-blog.com/archives/curl-follow-url-location-while-open_basedir-is-set/
The relevant section of code within ecurl.class.php is given below:
function configCurl($option, $value){
return curl_setopt ($this->curl, $option, $value);
}
Commenting out the return statement does not make the script work. Can someone please help me with this, to make the script work.
Thanks
Arvind