Trying to run a php script in a command shell on Debian 6.0 (Turnkey)
Works fine on a terminal session but I'm trying to set it up as a cron job and doesn't want to play ball.
Tried
php /home/update_scripts/update.php
/usr/bin/php5 /home/update_scripts/update.php
each time I get no such file or directory in /home/update_scripts/config.php on line 3
No joy, what am I doing wrong?
This is the config.php
Works fine on a terminal session but I'm trying to set it up as a cron job and doesn't want to play ball.
Tried
php /home/update_scripts/update.php
/usr/bin/php5 /home/update_scripts/update.php
each time I get no such file or directory in /home/update_scripts/config.php on line 3
No joy, what am I doing wrong?
This is the config.php
?php
require("../../www/config.php");
?>
Last edited: