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:[EMAIL PROTECTED]]
Sent: Monday, March 05, 2001 7:38 AM
To: [EMAIL PROTECTED]
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

==================================================================
Valerio Ferrucci                        Tabasoft Sas
[EMAIL PROTECTED]                      http://tabasoft.ancitel.it
                                        [EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to