Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

59 users online



PHP bandwidth

PHP bandwidth

Currently viewing this thread: 1 (0 members and 1 guests)


Page 1 out of 2
howdy

howdy

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

Scorchin

Scorchin

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

schoi

schoi

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>

Noel

Noel

Nobody fucks with my title.
Status: Offline!

Uh, no.

___________________

<3

coolaid

coolaid

Oh Yeaa.
Status: Offline!

accessing the server for proccessing php doesn't waste bandwith does.. right???
just the output takes bandwidth... right?? Whistle

___________________

scudworkz.com.

phpmonkey

phpmonkey

whoa, wtf?
Status: Offline!

lol

___________________

Fomerly known as lasnaranjas. Holler.
http://card.mygamercard.net/gelsig/blackdood.png

Dan

Dan

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?? Whistle

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


lol, indeed :P

___________________

Dan

Phil

Phil

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

TheClincher

TheClincher

Lost in Berkeley, CA
Status: Offline!
Quote:

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.

phpmonkey

phpmonkey

whoa, wtf?
Status: Offline!
Originally posted by TheClincher:
Quote:

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.
http://card.mygamercard.net/gelsig/blackdood.png

Page 1 out of 2
Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0186 seconds.