Current Cron Command
PHP Code:
/usr/bin/php /home/chewett/public_html/SoE/curl/get_logs.php >>/home/chewett/public_html/cronlog.txt 2>&1
Error:
PHP Code:
X-Powered-By: PHP/5.2.14
Content-type: text/html
<br />
<b>Warning</b>: require_once(/curl/curl.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in <b>/home/chewett/public_html/SoE/curl/get_logs.php</b> on line <b>8</b><br />
<br />
<b>Fatal error</b>: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/curl/curl.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/chewett/public_html/SoE/curl/get_logs.php</b> on line <b>8</b><br />
my include statement is
PHP Code:
require_once($_SERVER['DOCUMENT_ROOT'] . "/curl/curl.php");
Hopefully there is either a different way i can code my includes, or an addtional part of my cron to call, I was trying to use.
cd /home/chewett/public_html ; + the above command but that didnt seem to help either
If the script runs successfully it should output something like
Got logs at :2011_04_30_22_33
which it does when visiting the page normally.