RE: [PHP] constant tasks

2004-10-18 Thread Jay Blanchard
[snip]
I'm wondering if it is possible to have some kind of script running all
the 
time.  I have a site that collects data that users enter and emails
certain 
people and does other various tasks with the data.  Some of the
information 
collected contains dates and times that could be up to three months from

now.  What I am trying to do is have something fire off an email to
someone 
when that future date/time comes around so a follow-up can be done.

Anyone know of anything I can look into for this.
[/snip]

You could use CRON to periodically run scripts.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] constant tasks

2004-10-18 Thread Gryffyn, Trevor
It's possible to have a script running constantly, but Jay's right.
CRON or some other task scheduler would probably be better.  If you had
something running constantly and there was some problem with your
compile of PHP or something else that's getting used, there can be
memory leaks or other issues that could cause complications.  Running
something periodically rather than constantly is probably better in most
cases.

-TG

 -Original Message-
 From: Jay Blanchard [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 18, 2004 1:09 PM
 To: Aaron Todd; [EMAIL PROTECTED]
 Subject: RE: [PHP] constant tasks
 
 
 [snip]
 I'm wondering if it is possible to have some kind of script 
 running all the time.  I have a site that collects data that
 users enter and emails certain people and does other various
 tasks with the data.  Some of the information collected contains
 dates and times that could be up to three months from
 now.  What I am trying to do is have something fire off an email to
 someone when that future date/time comes around so a follow-up can be
done.
 
 Anyone know of anything I can look into for this.
 [/snip]
 
 You could use CRON to periodically run scripts.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php