Question

I would like to know a number of simultaneous file uploads in the very moment. E.g. If the number exceeds my limit, I would display a message to the user with apology to try later.

Is there a way how to get the number of currently running uploads in PHP ?

Thank you for your help...

Était-ce utile?

La solution

For this needs you better use some web-server module. For apache there is mod_qos. One of it's features is Limit the maximum number of concurrent requests to a location/resource (URL) or virtual host - just asyou need. It also can do much more even limit the bandwidth. Info about module is here.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top