I have a script that loads a massive directory listing and just (in it’s nature) takes forever to load. I’m now in some cases experiencing the script timing out and was curious if I could use something like usleep to keep the script from timing out or if I’ll just make the situation worse?
Share
PHP can try to look for a file/directory that doesn’t exist for a long time so if you’re already using something like:
I haven’t said a word, but if you simply use:
It can take a few minutes before the script times out, but it doesn’t do anything.