RE: [PHP-DB] Scheduling php task
| From: | Beau Lebens | Date: | Tue, 06 Mar 2001 02:13:16 +0000 |
| Subject: | RE: [PHP-DB] Scheduling php task | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-7130@lists.php.net to get a copy of this message | ||
or alternatively, if you don't have access to recompiling or anything like that,
set up a cron job to use lynx to hit a page (which is your php script) when required.
you can even set event times in a db and have that script check the db for anything that needs to be run and then perform that operation.
At 07:59 AM 3/5/01 -0500, Cosenza, Mario wrote:
You can compile it as an executable (not an apache module), then schedule it with cron. Run ./configure without the -with-apache= switch. It should reconfigure for "cgi mode" (I think that's what it's called). After you 'make' it you'll get an executable called 'php'. Use can use this to process you php scripts from the command line ('php test.php'). They just warn you not to put this in your web directory, because it can be used against you to compromise your security. Hope it helps, Mario -----Original Message----- From: Valerio Ferrucci [mailto:valfer@flashnet.it] Sent: Monday, March 05, 2001 7:38 AM To: php-db@lists.php.net Subject: [PHP-DB] Scheduling php task Does anyone know if is it possible to run a php script periodically (for example every night)? My system is Apache, LinuxPPC, php4 Thanks ==================================================================-- Beau Lebens - Web Master Insurance My Way, Your Friendly Online Broker (08) 9226 5888 http://www.insurancemyway.com.au/Valerio Ferrucci Tabasoft Sas valfer@flashnet.it http://tabasoft.ancitel.it taba@flashnet.it-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net