Re: Need to Run a PHP script using CRON or ?

From: Date: Mon, 15 Sep 2003 18:22:02 +0000
Subject: Re: Need to Run a PHP script using CRON or ?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-30517@lists.php.net to get a copy of this message
Goto your shell and type "php -i" w/o the quotes. You should see the phpinfo() output. You can pass the path to your script as a command line variable, and it will process it. Here, read about it, I think this is the right answer for you: http://us3.php.net/features.commandline Matt On Mon, 2003-09-15 at 15:41, Jonathan Villa wrote: > I have an application which creates temporary tables. My plan is to > remove them after a 24 hour period and only those which are have a > created time greater than 24 hours. That part I can do, my question is > how will I be able to run this script which is a 2 part script. > > First thing I do is pull the names of the temporary tables which are > going to be deleted from another table. From this result set, I need to > DROP tables as well as remove the reference to them from the first > table. > > I understand that I can run PHP from the command line but this would > require PHP to installed as a CGI which I prefer not to do. > > I was hoping I that I could use CRON to run this script once a day... > > Any ideas?

« previous php.db (#30517) next »