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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]