Page 1 of 1

check ftp server for number of connections?

Posted: Wed Mar 17, 2004 3:16 pm
by ferric
My host set me up an FTP server as well as a web server on my own IP address. I need to find a script (or write one) that, when the user tries to download something off my webpage, it will check the FTP server to see how many users are logged in, and if its more than like 15, deny access to the file.

can anyone set me off on the right foot? thanks.

Re: check ftp server for number of connections?

Posted: Wed Mar 17, 2004 3:22 pm
by TheBentinel.com
ferric wrote:My host set me up an FTP server as well as a web server on my own IP address. I need to find a script (or write one) that, when the user tries to download something off my webpage, it will check the FTP server to see how many users are logged in, and if its more than like 15, deny access to the file.

can anyone set me off on the right foot? thanks.
That's almost surely a configuration item on the FTP server. My provider tells me when I log on that I am "user #2 of 50 possible users" or something like that, and it's all coming from the server.

If you check with your host, they can probably tell you what the setting is, or set it for you.

Posted: Wed Mar 17, 2004 3:27 pm
by ferric
Yeah, it is set to 50. The thing is though, that like the 'videos' section of my site gets POUNDED with requests, and anyone trying to download sounds is out of luck. So, i'm trying to limit how many users the video's people take up.

Posted: Wed Mar 17, 2004 3:33 pm
by TheBentinel.com
ferric wrote:Yeah, it is set to 50. The thing is though, that like the 'videos' section of my site gets POUNDED with requests, and anyone trying to download sounds is out of luck. So, i'm trying to limit how many users the video's people take up.
I see. Well, you're outside my area of expertise (watching TV) so I can't say what's possible or not on the FTP server. It seems reasonable that the server could limit access in this way, but I don't know.

You could sure do it in a browser with PHP, though. Would you be interested in changing from FTP to a browser/HTTP solution?

Posted: Wed Mar 17, 2004 3:52 pm
by ferric
Yes, absolutly