The number of connections is controlled by the web server. This is not something which can be controlled using a PHP script.