Detecting how many people are downloading a file
Posted: Thu Feb 24, 2005 3:02 pm
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
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