UBB.Dev
Posted By: smilesforu Cron program - 11/09/2003 3:35 AM
A cron program you can add programs to run once a day from the admin link. Could be expanded to do cron tasks more times during the day provided you had the visitor to trigger it. Would be nice for use on iip programs that need a cron to keep them updated.
Posted By: omegatron Re: Cron program - 11/16/2003 2:37 PM
Couple points on this that I can think of.

Nice Idea and it would make life easier but the following problems I see.

1. Cron task is a server task and highly varies in design by each server depending on how they handle it even though the basic format is the same. Some do not even support it for customers. I doubt highly that anyone would be able to write a hack that would work effectively for that specific point. Someone could surely write a nice fancy interface like Cpanel has stick it in the admin area. However we are back to the issues of cron differences on servers. Maybe a variable section to define where the cron file is located would do it

Couple problems though. What about the people with no access to cron? What about the people who's hosts provide no cron?

2. Now this idea has nothing to do with the cron feature on a server. Basically one could write an applet that would act just like a cron and store it locally with threads to automate tasks. Nice easy way to do it probally the easiest but I am not sure about server resources on this one It would need to be able to check and calculate the time OFTEN to be able to effectively do its duty so their is bound to be strain on the server doing it this way.
Posted By: smilesforu Re: Cron program - 11/19/2003 12:21 PM
I was thinking it could save a daily setting for the site in the database. (depending on how often you wanted to send cron) Then once its updated for the period it wouldn't run again. Then you could add the various files you wanted it to run in a box

http://... sendpm.php
http:// ... sendemail.php
http:// ... updatenews.php
etc or what every you want run.

some sort of thing like that. It could be triggered by one visitor or spider to your site a day/time period.
© UBB.Developers