> I am trying to run a php script via cron. Problem is, that it > does not work if I > include the whole path in crontab > > Currently it looks like: > 0 6 * * * php > /home/www/project/app_cron/follow_up_new_members.php > /dev/null > > Most likeley because the webserver root for the project is: > /home/www/project/ > > So if I go into this dir and execute: > php app_cron/follow_up_new_members.php > > it workes. But not with the full path. What do I have to enter > into crontab? It > obviosly does not work with the full path, but how to change into > the directory > via cron first?
It is probably because the cron daemon cannot find the php binary in its path try it like this... > 0 6 * * * /full/path/to/php/binary/php /home/www/project/app_cron/follow_up_new_members.php > /dev/null hth rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php