Is there a way to measure bandwidth with php?

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
User avatar
markusn00b
Forum Contributor
Posts: 298
Joined: Sat Oct 20, 2007 2:16 pm
Location: York, England

Is there a way to measure bandwidth with php?

Post by markusn00b »

Title is pretty self-explanatory..

I've had a good ol google, to no avail.

Anybody done something like this?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: Is there a way to measure bandwidth with php?

Post by Kieran Huggins »

by "measure bandwidth" do you mean how fast a user's connection is? Like a speed test?

You could stream a fixed amount of data to the host and time how long it takes.
User avatar
markusn00b
Forum Contributor
Posts: 298
Joined: Sat Oct 20, 2007 2:16 pm
Location: York, England

Re: Is there a way to measure bandwidth with php?

Post by markusn00b »

Sorry.
I mean track how much bandwidth a visitor uses when they come to my site.
Post Reply