have recently switched servers,
Had a cron tab on the old one that had
"php /home/--account--/public_html/---.php > /dev/null"
run every 24 hours. used to work great.
however, same script on the new server throws the error:
/bin/sh: php: command not found
in the cron log.
i tried using a wget command instead, wget http://www.---domain--.com/--phpfile--.php >/dev/null, but then it saves the php file locally instead of just "nulling" it, and eveyr time the script runs i get a new copy of the file... i.e. phpfile.php, phpfile.php.01, phpfile.php.02 etc etc.
any of you have any ideas for me?
Had a cron tab on the old one that had
"php /home/--account--/public_html/---.php > /dev/null"
run every 24 hours. used to work great.
however, same script on the new server throws the error:
/bin/sh: php: command not found
in the cron log.
i tried using a wget command instead, wget http://www.---domain--.com/--phpfile--.php >/dev/null, but then it saves the php file locally instead of just "nulling" it, and eveyr time the script runs i get a new copy of the file... i.e. phpfile.php, phpfile.php.01, phpfile.php.02 etc etc.
any of you have any ideas for me?