I\'m trying to create a PHP script which pulls xml data (text and images) from a remote server and inserts it in a local database. I need to run this script every 10 minutes or
Here's a good primer on how Cron Jobs work: http://www.webmasters-central.com/article-blog/tutorials/cron-tutorial-managing-cron-tab-or-cron-job-is-easy/
Do you know about cron jobs? They're used to schedule periodic tasks like executing scripts from the server.
http://en.wikipedia.org/wiki/Cron
You can create a run of the mill curl script that connects to a remote server and fetches data, inserts into your db, set limits and exceptions. Then create an entry in crontab to run this script every 10 minutes. I have a similar setup running for one of my website which fetches data from stock exchange and updates a local cache, another script has the task of consuming the cache as and when required.