Runing automatic scripts

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hame22
Forum Contributor
Posts: 214
Joined: Wed May 11, 2005 5:50 am

Runing automatic scripts

Post 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
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

Don't think so.
printf
Forum Contributor
Posts: 173
Joined: Wed Jan 12, 2005 5:24 pm

Post 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!
Post Reply