Reputation: 139
How to develop a schedule task system like the one used by Wordpress to schedule post? Do they use Cron Job? If they use it, how they configure it through PKP script?
Upvotes: 0
Views: 1492
Reputation: 54944
I use php cron tasks, they look like the following
0 0 * * * * php -f /var/www/public_html/mycronphpfile.php
This means, at midnight, every day, run the command line php and execute the specified file.
Upvotes: 0
Reputation: 16656
Use cron
and in iterations get run php_cli
interpreter with your script.
Upvotes: 0
Reputation: 4917
As far as I know, WordPress just sets the publish date to some time in the future. It doesn't actually cause an event to happen in the future, it just looks that way when someone views the site.
You'd need a cron job if you actually wanted to do something in the future, web servers only respond to requests made by user agents.
Upvotes: 3