How to limit the Max Connection?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
baoky
Forum Newbie
Posts: 12
Joined: Sat May 24, 2008 6:21 am

How to limit the Max Connection?

Post by baoky »

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?
User avatar
Jasheppard
Forum Newbie
Posts: 24
Joined: Tue Jun 17, 2008 11:44 pm

Re: How to limit the Max Connection?

Post by Jasheppard »

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