I have a php script that checks for updates on many (thousands) of sites. On occasion (more frequently as the number of sites increases), I get an execution timeout on the update of one of these sites, and the whole script goes down the drain.
The best idea I could come up with is to fork each update, so if it dies, the overall update just continues. From what I gathered, it seems PHP threading isn't something to rely on, especially on a windows platform (which I unfortunately have to work on).
I thought about using curl as a forking mechanism, but won't it be much more costly for the server (in time and processing power)?
I'd be happy to hear some ideas and experience about PHP forking/threading...
thanks, Omer.