Ell20 Posted August 11, 2008 Share Posted August 11, 2008 Hi, I keep getting the following message when I attempt to use CURL: Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/streety/public_html/grabbers/grabbers/msnm/msn_contact_grab.class.php on line 372 Can anyone assist? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/119233-help-using-curl/ Share on other sites More sharing options...
monkeypaw201 Posted August 11, 2008 Share Posted August 11, 2008 If this is for a cronjob, use this instead /usr/bin/php /path/to/myscript.php Quote Link to comment https://forums.phpfreaks.com/topic/119233-help-using-curl/#findComment-614110 Share on other sites More sharing options...
Ell20 Posted August 11, 2008 Author Share Posted August 11, 2008 Nope its not for a cron job, its used to get contacts from say MSN, Yahoo etc... Quote Link to comment https://forums.phpfreaks.com/topic/119233-help-using-curl/#findComment-614114 Share on other sites More sharing options...
monkeypaw201 Posted August 11, 2008 Share Posted August 11, 2008 Never mind Quote Link to comment https://forums.phpfreaks.com/topic/119233-help-using-curl/#findComment-614115 Share on other sites More sharing options...
trq Posted August 11, 2008 Share Posted August 11, 2008 As the error states. CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set Quote Link to comment https://forums.phpfreaks.com/topic/119233-help-using-curl/#findComment-614117 Share on other sites More sharing options...
Ell20 Posted August 11, 2008 Author Share Posted August 11, 2008 Yes, but what does that mean? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/119233-help-using-curl/#findComment-614118 Share on other sites More sharing options...
DarkWater Posted August 12, 2008 Share Posted August 12, 2008 It's an INI directive that your host must have set. Quote Link to comment https://forums.phpfreaks.com/topic/119233-help-using-curl/#findComment-614168 Share on other sites More sharing options...
sKunKbad Posted August 12, 2008 Share Posted August 12, 2008 see the online documentation: http://www.php.net/manual/en/features.safe-mode.php#ini.open-basedir This might help you too: http://www.php.net/manual/en/function.curl-setopt.php#79787 Quote Link to comment https://forums.phpfreaks.com/topic/119233-help-using-curl/#findComment-614223 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.