Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
filemtime()
Topic Started: Jul 23 2009, 07:40 PM (466 Views)
Ethyr
Member Avatar
Light of a Goddess
[ *  *  * ]
Viral.
Sep 9 2009, 10:48 AM
From an explanation given to me from Jory about a month ago, I was told that the bandwidth is calculated on what is output on the page. So, if a PHP file is 20 KB, and only 10 KB is output, that's how much bandwidth would be used. This wasn't outputting anything.
Bandwidth is actually done by whatever the server does, for you run scripts on server, it uses bandwidth there to access the file, run the file, and close it.

Such as a database. It has to run that part, make the query happen, then close it. Granted, nothing's being "displayed", but it still has to have transfer to be able to do those actions.

Blank HTML page would have 1kb of transfer. lol
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar


Ethyr, what are you basing this all on? Because as far as I'm aware, the thing that is normally called "bandwidth" when talking about webhosting, is the ammount of data that can be transfered to the client. And the only thing that is getting transfered, is the HTML, images, CSS, etc. (And some HTTP headers and such. But those are trivial in most cases - the first page of this topic has 19KB for the main request, about 400 Bytes of that is in HTTP headers. Thats less then half a percent.) But doing an extra query to the database doesn't increase the ammount of data that needs to be sent to the client. (I'm basing this on both my network engineering minor, and working for a webhosting company. :) )

What I think needs to be explained here, is where the name "bandwidth" comes from. Your webhost does not buy 1000GB per month. Your webhost buys 10MB/s (average, no peak) - thats what the term "bandwidth" refers to. The reason you have to buy an ammount of data and not a speed, is because its much easier to understand. They should have just remembered to change the name when they changed the measurement method.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Programming and Scripting Chat · Next Topic »
Add Reply