Hi there everyone!
I'm trying to adapt a sitemap generator to one of my sites and I'm having an issue with the script exceeding PHP's execution cap. I understand that I could change this setting in php.ini but I'd rather handle it in another manner and want to run some ideas by the guys and gals in the know to see if I'm overlooking anything.
My first thought was to modify the script to run in batches. Looking at the script, it's a little confounding.
Secondly, trying to run it as a cron job. Does doing it this way allow me to circumvent the execution cap?
Would any of these methods appeal to you or would you do something completely different?
To better explain the situation, the site in question will have a ton of links that change and are added to often so it's something I need to do weekly. The script I'm trying to adapt is this one, but I'm not married to it and would be happy to switch to something else if there's something better.
Thanks for your time!