"Spidah" <h.*********@eggstra.co.nz> wrote in message news:<OJ*******************@news.xtra.co.nz>...
Please forgive me if this has been asked before.
Is it possible to have a php script run automatically?
I am talking about the sort of script that handles regular activities such
as issuing invoices, reminders etc? How are these run? Does somebody have to
go in and push a button, do you have to tell the
server to run these scripts at a particular time, or is there another way?
Use PHP 5 which makes it easy to turn a script into a daemon that can
run as a normal service on any computer. Then just write the script as
you would any other computer program, launch it once and it will run
forever. If you want a reminder, just have it keep a list of dates (in
an array, or XML, or a database, or anything else) and it can send a
message to standard output when you need the reminder, or, better, it
can send you an email.