Hi I am currently running the XML catch script in a cron job, however since I have over 50 XML feeds. Which puts that data into the mysql database.
What I need to do, due to it is taking around 10min to run the PHP page, I would like to be able to limit the number of feeds to say 5 each page load.
But what I need is for the script to auto go to the next 5 feeds and so on.
Is there anyway to do that?
Thanks


Hello Russell, When
Hello Russell,
When requesting a script via CRON, which might not necessarily honour an HTTP meta refresh which is one way to get a page to reload; the best way would be to implement start and count parameters into your script; and then build in the delay that you want between runs into the end of the script with the sleep() statement.
Regarding the parameters, make your script accept the parameters such as
fetch.php?start=1&count=10Then use those parameters to control which feeds are requested; and at the end of the script add; say for a 2 minute sleep;
sleep(120);Then in your cron process, you can chain together requests to fetch.php with the required parameters separated by the semi-colon character...
Hope this helps!
Cheers,
David.