Re: Automated Processes
| From: | Koos van den Hout | Date: | Mon, 20 Nov 2000 20:27:19 +0000 |
| Subject: | Re: Automated Processes | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-4587@lists.php.net to get a copy of this message | ||
Quoting Jamie Alessio who wrote on Mon, Nov 20, 2000 at 10:09:16AM -0800:
> > My question i guess is how to get the automated reminder process to happen.
> >
> Your best bet (if you're using *nix) is to set up a cron job that either runs a PHP or
> Perl script at a specified time. If you want to use a PHP script then you'll have to
> compile PHP as a CGI executable. Admittedly, I was a bit hesitant to do this for a while
> because I thought it would be a headache but it turned out to be extremely simply and it's
> great to be able to run PHP scripts from the command line and pipe data to it. The second
> option is to use Perl which is most likely already installed on your system but you'll
> probably have to install DBI to get it to talk to your database. The disadvantage to this
> is that you have to develop some things in Perl and some in PHP so I'd recommend trying
> out compiling PHP as a CGI executable.
How about making a php script that does 'the thing' (checking, mailing)
without generating output and then using the following:
lynx http://yourserver/the/special/script.php
From cron. Best of both worlds :)
Koos
--
Koos van den Hout, PGP keyid RSA/1024 0xCA845CB5 via keyservers
koos@kzdoos.xs4all.nl or DSS/1024 0xF0D7C263 -?)
Fax +31-30-2817051 Visit my site about books with reviews /\\
http://idefix.net/~koos/ http://www.virtualbookcase.com/ _\_V