PHP Scandir timeout

I have set the max execution time to 0. I am reading a huge folder over network so scandir works for a long time. I wanted to know that is there any way to set a timeout for scandir. i.e Scandir() can only run for 10 seconds then stop?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.