php vs html in a header/footer

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   php vs html in a header/footer
gutchunks
CZ Newbie
gutchunks has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 21, 2004
0.00 posts per day
Posts: 29
Points: 2,148
   
is there any reason for making the header and/or footer of a phpnuke theme in php rather than html? ive noticed that most commercial themes use php for the header/footer but i really dont see any advantages over html. could someone please clarify? thanks in advance.



Back to top Reply with quote
#2   re: php vs html in a header/footer
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.70 posts per day
Posts: 5530
Points: 481,695
   
PHP is server side while HTML is client side. Several reasons why this is done but it is mainly due to page weight and speed.

It takes the server a little longer to parse HTML then output it than it is for PHP thus hindering or taking page loads a little bit longer. Plus PHP is dynamic while HTML is static. Each time a page is "called" by the user, a different piece of information is loaded when it is in PHP which is why it is called dynamic. If you notice, the system time info at the top of this site, it always chages everytime the page is loaded. If that were done in HTML then it will not update until the webmaster changes it per second...and that would be a doozy to do!



Taut



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum