[wp-hackers] Future Posting Fix Request
computerguru at neosmart.net
Sat Jul 22 06:40:21 GMT 2006
> I'm sorry, one of us is lost. What "default php cron interface"?
Sorry, I meant php via the default cron interface.
What I'm thinking:
1. Do whatever it is we're already doing.
2. CGI? We're stuck, go on to step 3. Else Finish.
3. Require access to php exec().
4. Using exec() add an entry to the crontab.
Exec() is enabled on like 99% of all systems, even in safe mode.
The crontab listing would be calculated by subtracting time of publication from current time. Once the cron job runs, we use the exec() command to _delete_ that cron entry.
The way it would work is that every time wp-cgi-cron.php is accessed, it will query the db for to-be-posted entries, sort them by date of publication (ASC), then publish the first entry. It would then use exec() to delete that listing from the crontab.
I don't see why it shouldn't work.
More information about the wp-hackers