Sign in to follow this  
Uthman

[web] realtime site stat

Recommended Posts

is there any way using php that I can find out the status of my website? Like which files are currently being downloaded by which IP?im trying to write a script for a friend to monitor realtime download status, not dissimilar to a very very small fileplanet. i need to be able to tell how many downloads are in progress so that future dls can get queued or whatever. any help with be greatly appretiated. thanks!

Share this post


Link to post
Share on other sites
Take a look at this thread regarding sessions. Simply write something to a database table everytime that someone using a certain sessions tries to download a file. The best way would be rerouting downloads through a PHP script. That is, write a PHP script that outputs the requested file instead of linking to the actual file.

BTW: Are you really attracting so many downloads that you need to start queueing them? Apache is usually pretty good at handling those himself.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this