Re: Automated Processes

From: Date: Mon, 20 Nov 2000 18:09:16 +0000
Subject: Re: Automated Processes
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-4584@lists.php.net to get a copy of this message
> 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. Whichever one you choose just set up and cron job that calls a script that queries the DB and sends emails out. More info on setting up a cron job can be found a linuxdoc.org. Hope that helps. - Jamie

« previous php.db (#4584) next »