Which web template loads faster: html or php

Discussion in 'PHP' started by ketting00, Feb 14, 2010.

  1. #1
    Hi,

    I've built half a web site based on php scripting language, but it had reached a dilemma: which web templates should I go with: in php or in html platform.

    Both templates look the same. I can't compare their loading time on my local computer. Which template loads fastest on a Linux server?

    Thanks
     
    ketting00, Feb 14, 2010 IP
  2. krsix

    krsix Peon

    Messages:
    435
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What do you mean by template? If you're comparing a .php file and a completely static HTML file with no modifications, no rewrites, etc, the static HTML file will be faster.
     
    krsix, Feb 14, 2010 IP
  3. ketting00

    ketting00 Well-Known Member

    Messages:
    782
    Likes Received:
    28
    Best Answers:
    3
    Trophy Points:
    128
    #3
    I mean the functions and the features behind the web site is written in php, but i can write the index, the user profile pages etc. in both .html and .php extension.

    Thanks
     
    ketting00, Feb 14, 2010 IP
  4. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #4
    of course HTML is faster, especially if php has a dynamic variables needed to be placed on the template.
    did you try using html + xml, well, for me i recommend it.
     
    bartolay13, Feb 14, 2010 IP
  5. baris22

    baris22 Active Member

    Messages:
    543
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #5
    ofcourse html. html is the fastest in web languages
     
    baris22, Feb 14, 2010 IP