or even better; compile PHP as CGI in addition to an Apache module,
and put it somewhere in the path. You can then set cron to:

0 20 * * *  php -q myphpfile.php > results_to_this_file.txt

This could be useful if you need to run a script that is not available on
the web-server, for instance.

-J
----- Original Message -----
From: "Ovidiu EFTIMIE" <[EMAIL PROTECTED]>
To: "GAYTAN BAHAMONDEZ DANIEL EDUARDO" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, February 09, 2001 8:31 AM
Subject: [PHP] Raspuns: [PHP] Cron + PHP


> 0 20 * * * lynx -dump http://localhost/file.php
> every day at 20:00 this file will be executed
>
>
> Ovidiu
>
> -----Mesaj original-----
> De la: GAYTAN BAHAMONDEZ DANIEL EDUARDO [mailto:[EMAIL PROTECTED]]
> Trimis: Friday, February 09, 2001 12:37 AM
> Catre: [EMAIL PROTECTED]
> Subiect: [PHP] Cron + PHP
>
>
> How can i make a crontab run a  php file???
> should i add something like this in the file:
>
> path/to/file.php ????
>
>
> Thanks in advance...
>
>
> --
> 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]
>
>
> --
> 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]
>


-- 
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]

Reply via email to