RE: [PHP] cron not allowed
| From: | Nick Winfield | Date: | Tue, 13 Nov 2001 14:29:11 +0000 |
| Subject: | RE: [PHP] cron not allowed | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74436@lists.php.net to get a copy of this message | ||
On Tue, 13 Nov 2001, Jack Dempsey wrote:
> how did you plan on running php from cron? however you do that you could run
> a perl script that just makes a system call and does the same thing....
[blah.php]
#!/path/to/php -q
do_stuff();
[/blah.php]
Then just add a record to user crontab, running the script whenever and
writing any output to either a log file or /dev/null - a matter of taste,
I believe. :)
You have to ./configure PHP without Apache support though for it to build
a PHP binary.
Cheers,
Nick Winfield.