nightshade877 Posted April 21, 2010 Share Posted April 21, 2010 Hi, before I ask my question, I would first like to state that it is my great honor to be given advice from respectable php experts like yourselves. I would also like to thank each of you for your advice and help, I really do appreciate it. The problem is, when one enters their email in the space provided and hits "invite", the following errors come up. Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION can not be activated when in safe_mode or an open_basedir is set in /home/a7278579/public_html/index.php on line 77 Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION can not be activated when in safe_mode or an open_basedir is set in /home/a7278579/public_html/index.php on line 106 The errors say that safe_mode and/or open_basedir is enabled in index.php But when I go to edit index.php, safe_mode and open_basedir are nowhere to be found. How can I disable safe_mode or open_basedir when they are not in my index.php file? Will I have to add the command to disable them manually? If so, will you please be so kind as to tell me how to do that? Thank you so much. Quote Link to comment https://forums.phpfreaks.com/topic/199327-can-someone-help-me-with-this-please-thank-you-very-much/ Share on other sites More sharing options...
teamatomic Posted April 22, 2010 Share Posted April 22, 2010 You will find both of those values/status in phpinfo. HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/199327-can-someone-help-me-with-this-please-thank-you-very-much/#findComment-1046202 Share on other sites More sharing options...
ignace Posted April 22, 2010 Share Posted April 22, 2010 The errors say that safe_mode and/or open_basedir is enabled in index.php They said no such thing. They said that you can't use cURL because either safe_mode = On or open_basedir has been specified to any directory in your web root. You don't need cURL you can do whatever you are doing also with fopen or file_get_contents however you'll have to make sure allow_url_fopen = On or this won't work either. Quote Link to comment https://forums.phpfreaks.com/topic/199327-can-someone-help-me-with-this-please-thank-you-very-much/#findComment-1046289 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.