executing php scripts via cron
| From: | Merlin | Date: | Tue, 18 May 2004 07:46:39 +0000 |
| Subject: | executing php scripts via cron | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-186452@lists.php.net to get a copy of this message | ||
Hi there,
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?
Thank you for any help,
Merlin