Forum Moderators: coopster

Message Too Old, No Replies

Scheduling

Is there a way to schedule tasks?

         

opiston

9:50 pm on Aug 27, 2005 (gmt 0)

10+ Year Member



Hi all,
I am trying to figure out how to schedule tasks on my website.
For example, PAGE1 should perform a different task in the morning than in the afternoon.

And at the end of the day, I have to extract some data from the database and put them into a file. This should be done automatically.

I am new to this topic, so any suggestions are welcome.

Best Regards
Opiston

Longhaired Genius

10:01 pm on Aug 27, 2005 (gmt 0)

10+ Year Member



Because of the way PHP works (scripts run when called from a browser), it is fundamentally unable to do this. If you do not have shell-access to your server to set up a crontab you could try Pseudo-cron, a PHP script that is included in a busy page and checks for required tasks every time it is run.

Added: the am/pm tasks could be done by just checking the time, of course.