I have a php script which calls on the curl library and runs fine when executed from the address bar.
When cron calls it, it returns the following error via email:
---------------------------------------------
Status: 302 Moved Temporarily
X-Powered-By: PHP/5.2.5
Set-Cookie: PHPSESSID=4257db6a00fc88b2568473867909418d; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
location:login.php
Content-type: text/html
Connected successfully on Wednesday 26th of March 2008 09:17:02 AM <bWed, 26 Mar 2008 09:17:02 -0500 /><bWed, 26 Mar 2008 09:17:02 -0500 /><br />
<b>Fatal error</b>: Call to undefined function curl_init() in <b>/home/walkhome/public_html/check_alerts.php</b> on line <b>91</b><br />
----------------------------------------------
My account details:
cPanel name: walkhome
Main domain: walkhomealert.x10hosting.com
Address of script: walkhomealert.x10hosting.com/check_alerts.php
Server: lotus
PHP: Ugraded to intermediate level several days ago.
I have checked for similar posts and although I found one it didn't offer any answers.
Any help greatly appreciated.
When cron calls it, it returns the following error via email:
---------------------------------------------
Status: 302 Moved Temporarily
X-Powered-By: PHP/5.2.5
Set-Cookie: PHPSESSID=4257db6a00fc88b2568473867909418d; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
location:login.php
Content-type: text/html
Connected successfully on Wednesday 26th of March 2008 09:17:02 AM <bWed, 26 Mar 2008 09:17:02 -0500 /><bWed, 26 Mar 2008 09:17:02 -0500 /><br />
<b>Fatal error</b>: Call to undefined function curl_init() in <b>/home/walkhome/public_html/check_alerts.php</b> on line <b>91</b><br />
----------------------------------------------
My account details:
cPanel name: walkhome
Main domain: walkhomealert.x10hosting.com
Address of script: walkhomealert.x10hosting.com/check_alerts.php
Server: lotus
PHP: Ugraded to intermediate level several days ago.
I have checked for similar posts and although I found one it didn't offer any answers.
Any help greatly appreciated.
Last edited: