HI
I had an idea of faking a cron job (which is nothing more than an automatic call at a given time my scripts?), as I don't have access to my ISPs cron jobs.
Hi everyone,
I want to 'hack' the wwwthreads.php and the categories.php with some lines of code that do the following:
Check when doexpire.pl has been run the last time.
* If the current time is after 2 AM and it has not been running on the current date yet:
* Run do expire.php
* Remember the time it was run.
So an user action starts the cronjobs instead an automatic serverside program.
The consequence is that
1. no action if no user that day (which is fine)
2. summaries by email not on a regular time but just somtimes a day (which is better than nothing :)
3. The poor user that starts the whole thing, has maybe some delays because the system has other things to do... (which is tolerable, I think)
I just started with PHP one week ago, wen I bought the WWWTHREADS licence I also bought one of those books.
So I am still a bloody amateur, is anybody of you pro's interested to help me developing this ad-on,
so for future releases a user can set up in config.main.php, whether he wants the 'real' ot the 'fake' cron jobs to run?
I am very curious what you all think about that idea...
Carl
darkwebforum