Go Back   CP Web Hosting - reseller hosting > Server Scripting > PHP
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-2007, 09:37 AM
Senior Member
 
Join Date: May 2007
Posts: 290
Default .htm and .php extension

some pages of my website have .php extension and other have .htm

Will this affect the downloading speed for visitors ?
Reply With Quote
  #2 (permalink)  
Old 07-03-2007, 09:39 AM
Senior Member
 
Join Date: Apr 2007
Posts: 347
Default

No, but if you can work with PHP, do it. It will be much easier for templating
Reply With Quote
  #3 (permalink)  
Old 07-03-2007, 09:41 AM
Senior Member
 
Join Date: May 2007
Posts: 329
Default

If your pages are just plain html there is no reason to work with PHP. It can't provide anything for you but slow down your web site due to the extra resources it takes due to the php interpreter.
Reply With Quote
  #4 (permalink)  
Old 07-03-2007, 09:42 AM
Senior Member
 
Join Date: Mar 2007
Posts: 193
Default

No there is no difference.
Reply With Quote
  #5 (permalink)  
Old 07-03-2007, 09:45 AM
Senior Member
 
Join Date: May 2007
Posts: 217
Default

Yes, but the difference won't be noticeable. By default, PHP parses all files with an .php extension before it sends the output to the browser. That means it checks for <?php tags and parses the content of them. (If any).

While .html files won't be parsed by default. So they're served directly.
Reply With Quote
  #6 (permalink)  
Old 07-03-2007, 09:56 AM
Senior Member
 
Join Date: May 2007
Posts: 345
Default

You shouldn't notice any difference in speed.
Reply With Quote
  #7 (permalink)  
Old 07-03-2007, 09:57 AM
Senior Member
 
Join Date: Mar 2007
Posts: 274
Default

There is a big difference between php and html. It's not the same type, so you can't actualy ask .htm or .php.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:01 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0