Re: cron job for php not working

From: Date: Thu, 20 May 2004 15:40:58 +0000
Subject: Re: cron job for php not working
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-186587@lists.php.net to get a copy of this message
On Thursday 20 May 2004 11:35 am, Jay Blanchard wrote: > At the command line type "which php" and it will return the full path to > php. Modify your line in the crontab with the full path... > > 0 6 * * * /usr/local/bin/php > /home/www/project/app_cron/follow_up_new_members.php I always put the #!/usr/local/bin/php at the top of all my command line php scripts. Mine is actually #!/usr/bin/php. Then chmod 755 the file so that it can execute. James Hicks

« previous php.general (#186587) next »