I have a php script which perform redirect to my download server.
But I want limit the amount of connections to my server to be maximum 2 at a time.
Can anyone guide me on the code?
How to limit the Max Connection?
Moderator: General Moderators
- Jasheppard
- Forum Newbie
- Posts: 24
- Joined: Tue Jun 17, 2008 11:44 pm
Re: How to limit the Max Connection?
Depending on what you are using to host your download server, in the options you should be able to limit the connections?
But with php, you could possibly use session variables to to limit the connections already downloading.
but the problem will be when they have finished downloading, you will need it to change the variable again.
For my website I use a php script to redirect to my HFS server. Which in that i can limit the speed and connection.
But with php, you could possibly use session variables to to limit the connections already downloading.
but the problem will be when they have finished downloading, you will need it to change the variable again.
For my website I use a php script to redirect to my HFS server. Which in that i can limit the speed and connection.