Re: Daemon with a PHP file

From: Date: Wed, 21 Mar 2001 22:00:26 +0000
Subject: Re: Daemon with a PHP file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45007@lists.php.net to get a copy of this message
On Wed, 21 Mar 2001, Renzi, Sebastian wrote: > > Hello my name is Sebastian ,i'm from Argentina ,this is my first > question in this list.I would like to know how to run a php file every > day at 8 AM , my intention was to create a cron with the crontab > command.Something like this ... > > 0 8 * * * /home/users/sebas/citas.php3 > > but this doesnt work ,do u know how to do this ? ,thanks Sebastian, If you have the PHP interpreter installed as a CGI, you can do this: 0 8 * * * /path/to/php -f /home/users/sebas/citas.php3 Alternatively, you can set the execute bit on your php script and point out the interpreter on the first line: #!/path/to/php -q <? etc. drw

« previous php.general (#45007) next »