
July 19th, 2006
06:30 PM
Neverside Newbie
Status: Offline!
PHP bandwidth
i have a small website that i am concerned with saving as much bandwidth as possible, so with that in mind i have a few questions.
1. would it save bandwidth if i code my site entirely in php (and echo out all html tags) instead of escaping in and out of php?
2. would it save bandwidth to place all my php functions in a seperate .php file and just include that file on the pages that need it?
thanks in advance
___________________
Haudenschilt.com

July 19th, 2006
07:02 PM
Neversidian
Status: Offline!
It wouldn't make any difference if you "coded" your site entirely in php and echo'ed out the html tags, but it would if you compress the output.
A very simple page of information for you to follow can be found here:
http://derickrethans.nl/phpperform/phpgz.html
Hope this helps
Scorchin

July 20th, 2006
06:26 PM
funny and cheeky
Status: Offline!
I thought if u use echo it puts on unnecessary stress on the server? Isn't it better to mix it up along with html. eg
<p><?php print $name;?></p>

July 21st, 2006
01:46 AM
Nobody fucks with my title.
Status: Offline!
Uh, no.
___________________
<3

July 21st, 2006
02:03 AM
Oh Yeaa.
Status: Offline!
accessing the server for proccessing php doesn't waste bandwith does.. right???
just the output takes bandwidth... right?? 
___________________
scudworkz.com.

July 21st, 2006
05:55 PM
whoa, wtf?
Status: Offline!
lol
___________________
Fomerly known as lasnaranjas. Holler.


July 21st, 2006
05:57 PM
Ex-Ninja
Status: Offline!
Originally posted by coolaid:
accessing the server for proccessing php doesn't waste bandwith does.. right???
just the output takes bandwidth... right?? 
Bandwidth, is the data coming in and out of the server. So no processing PHP does not waste bandwidth. That's like saying playling Microsoft Pinball (The dogey game) is going to use your internet bandwidth...
Originally posted by phpmonkey:
lol, indeed :P
___________________
Dan

July 22nd, 2006
11:47 AM
with Mr. Jones
Status: Offline!
Originally posted by schoi:
I thought if u use echo it puts on unnecessary stress on the server? Isn't it better to mix it up along with html. eg
<p><?php print $name;?></p>
Echoing more or less is rather completely insignifigant compared to, say, anything else your script might do.
___________________
http://www.philbrodeur.com - Expert PHP Development and Tutorials

July 22nd, 2006
10:31 PM
Lost in Berkeley, CA
Status: Offline!
2. would it save bandwidth to place all my php functions in a seperate .php file and just include that file on the pages that need it?
yes, and it wuold also be convenient, kind of like including a css
___________________
There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.

July 23rd, 2006
03:51 AM
whoa, wtf?
Status: Offline!
Originally posted by TheClincher:
2. would it save bandwidth to place all my php functions in a seperate .php file and just include that file on the pages that need it?
yes, and it wuold also be convenient, kind of like including a css
Uhm. No? You would *not* save bandwidth by using includes.
___________________
Fomerly known as lasnaranjas. Holler.
