Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this questionI know how to parse and setup databases etc in php. However i was wondering how would i go about constantly checking a xml feed for a specific string in one of the tags and then every time this string is found adding th开发者_JAVA技巧e whole XML item( as in the tags etc) to a database.
What i really need help on is how i would make my script constantly be working and looking out for these strings? It would need to refresh the xml feed every 20 minutes or so to keep a look out for the string and then when it finds it add it to the database without me manually navigating to the php page every time.
So all i need is a idea on how this could be achieved? If you could help me it would be great and much appreciated!
Thanks!
What i really need help on is how i would make my script constantly be working and looking out for these strings? It would need to refresh the xml feed every 20 minutes or so
Execute the script using cron
(And make sure your script keeps a cache and respects cache control headers)
精彩评论