Вопрос

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...

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top