Good evening, I am Rob Jackson, Milestone Services Administrator.
Myself and my colleagues have been looking into this error and it turns out the error resides in a function in PHP, rather than the Coppermine Gallery software. The function in question, 'readdir' which is being used in a while loop, 'while (($file = readdir($dir)) !== FALSE) { // loop looking for files'.
What the team have discovered is that when that function is called, rather than reading the images in the configured directory, the function seems to read images in that directory and it's sub-directories:
Let's say we want to read C:\example, The function however reads the sub-directories aswell as the configured directory:
C:\example\
C:\example\images\
C:\example\images\gallery\
C:\example\pictures\
etc.
From our troubleshooting we've discovered it takes 0.015s to read each file, with our file structure that accounts to a whole 1653s (30mins apx) to read all of the files. This will explain why the timeout problem will occur, and it also explains why the server is using copious amounts of CPU cycles on PHP.
We're still looking into solutions, as we believe phpts.dll may also be related to the problem. We don't specialise in PHP so any help you can give us as the hosts, and our client will be much appreciated.
Regards,