Hi All
I'm running PHP4 latest and Apache 2 latest and MySQL Latest on my server.
What I want is a PHP program to detect how many poeple are downloading a certian file from my server a point in time.
Basically i want a PHP script to check if 3 people are downloading a file from my server and if 3 or more are then download the file from another server.
Does anyone know if this can be done? if so i would really like to know how.
I'm fine with re-directing the URL but how could i detect with Apache how many people are downloading that file?
Thanks All
Detecting how many people are downloading a file
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
no, they will not tell you when they finished. The most they can tell you is how much data was sent. But that doesn't bare a thing to how much data was recieved.
if you use a download script, you should be able to easily track when data is being sent out, via setting a flag or something that says they are downloading. When the script finishes, you can mark them as finished..
if you use a download script, you should be able to easily track when data is being sent out, via setting a flag or something that says they are downloading. When the script finishes, you can mark them as finished..