SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Hybrid View
-
Apr 1, 2006, 13:36 #1
- Join Date
- Feb 2004
- Location
- MN
- Posts
- 408
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
A question regarding bandwidth optimization and PHP
I've been trying to optimize my site as much as possible to keep things running fast and to reduce bandwidth, but I think I need to clear up a few misconceptions I might have.
I have a header.php file where I hold all of the validation functions I use for the rest of the site. It weighs about 8kb. But, when I load a page, and save it to my desktop, the page will weigh a mere 1.5 kb.
Does that mean that the entire header.php file is not loaded? Does bandwidth only account for what is echo-ed to the browser?
-
Apr 1, 2006, 13:48 #2
- Join Date
- Jul 2005
- Location
- West Springfield, Massachusetts
- Posts
- 17,290
- Mentioned
- 198 Post(s)
- Tagged
- 3 Thread(s)
PHP script weight
The weight of the scripts will (maybe) affect server load, but bandwidth is only what is transferred in response to the request. For example, if you have script that queries a large database it will slow down the response to the request, but once the server proccesses the script then the download speed is affected by the output weight.
Big Change Coming Soon - if you want your PMs save them now!
What you need to do to prepare for our migration to Discourse
A New SitePoint Forum Experience: Our Move to Discourse
-
Apr 1, 2006, 14:52 #3
- Join Date
- Aug 2000
- Location
- Philadephia, PA
- Posts
- 20,578
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by sp0om
Try Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more
Bookmarks