How do I create a Daemon for my php rss reader?
Posted: Fri Jul 04, 2008 12:30 pm
hi everyone.
What's the best implementation for creating a php daemon?
Here's my desired use case:
A thread sleeps every 20 minutes, and upon waking up, updates the rss feed in the database.
My ackward solution so far is to have a php class check and updates the rss feed for every site visitor. This is not optimal, since each web visitor will trigger a check-update process. Instead, I'd like to have one seperate thread responsible for the check-update process.
help.
What would be a better implementation.
What's the best implementation for creating a php daemon?
Here's my desired use case:
A thread sleeps every 20 minutes, and upon waking up, updates the rss feed in the database.
My ackward solution so far is to have a php class check and updates the rss feed for every site visitor. This is not optimal, since each web visitor will trigger a check-update process. Instead, I'd like to have one seperate thread responsible for the check-update process.
help.
What would be a better implementation.