SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2001
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Does php take extra bandwith?

    Im looking into using PHP on my site. Ive seen what it can do and im quite impressed . I learned the basics of PHP and MySql... enough so that i can make a page using them. But before i rewrite my site, i want to know if itll take up more bandwith than regular html?
    signature

  2. #2
    Team SitePoint AlexW's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne
    Posts
    832
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Can't think of any reason why it should. More processor cycles, yes, but probably less bandwidth since you can detect a lot about the client system, and then only send them the code they need.

    In the past if you had done the same with a client side script (e.g. JavaScript) you would have still needed to send the code for all browsers, and then had the browser itself only choose to render the the code written for it. So IE would ignore the NS4.7 code even through it did have to download it all. That's wasted bandwidth. Any server-side scripting language, PHP included, can take unneeded code out of the page efore it's sent.
    Alex Walker
    SitePoint Developer
    SitePoint - Learnable

  3. #3
    SitePoint Wizard Defender1's Avatar
    Join Date
    Apr 2001
    Location
    My Computer
    Posts
    2,808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just remember this: If it goes to the browswer, it's uses bandwidth. If the browser doesn't see it, it doesn't use bandwidth.
    Defender's Designs
    I'm Getting Married!

    Not-so-patiently awaiting Harry Potter Book 7 *sigh*


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •