Page 1 of 1

Runing automatic scripts

Posted: Tue Oct 17, 2006 5:49 am
by hame22
Hi is there a way I can run automatic scripts in php without setting up cronjobs on the server?

For example I would like a script to run at the end of each day and remove expiring directory listings

Thanks in advance

Posted: Tue Oct 17, 2006 6:08 am
by Ollie Saunders
Don't think so.

Posted: Tue Oct 17, 2006 8:03 am
by printf
ya, a CRON TASK is the only sensible way, but you can create a fake cron task handler that runs in PHP, but the process would have to run, then sleep between each process. Not recommended, but it works when you don't have any other option! If you do that be sure to use a placeholder, so you can kill the process when you need to!

me!