Reply
includes: .php or .shtml
Old 10-14-2009, 10:47 PM includes: .php or .shtml
Average Talker

Posts: 20
Name: Hal
Trades: 0
I want to use includes for my menus that will be on every page so that I don't always have to go on every single page to make changes.

Which extension should i use :
.php or .shtml ?

Which will run faster?
hoco is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-15-2009, 01:48 AM Re: includes: .php or .shtml
Brian07002's Avatar
Defies a Status

Posts: 1,594
Name: ...
Location: ...
Trades: 0
I don't think it's a matter of what run's faster, I DO believe it's a matter of server support, don't quote me on that, but I *think* that's the case. Use ssi if you don't have access to php on your server, then again, I think ssi is faster because of the way it's implemented into the webpage. Again, don't quote me on any of this, you should google it first.

EDIT: Nope -- the php parser is faster, but actually your bandwidth will be the determining factor for the scripts speed.
__________________
Sig Less - Have some site you want me to put here? Will put here for a couple of paypal bucks.

Last edited by Brian07002; 10-15-2009 at 01:51 AM..
Brian07002 is online now
Reply With Quote
View Public Profile
 
Old 10-15-2009, 07:49 AM Re: includes: .php or .shtml
lizciz's Avatar
Ultra Talker

Posts: 330
Name: Mattias Nordahl
Location: Sweden
Trades: 0
No matter which one is faster, you are most likely gonna have to do hundreds or maybe thousands of includes on every page in order to actually notice any difference.
__________________
596f75206d65616e20796f752063616e2061637475616c6c79 207265616420746869733f
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 10-15-2009, 09:10 AM Re: includes: .php or .shtml
Extreme Talker

Posts: 172
Trades: 0
I prefer using PHP (even if PHP files contain nothing except plain HTML code)
__________________
Daniel, Helpdesk Leader
Hosting24.com Web Hosting - First class web hosting services.
Reseller Hosting - Provide unlimited disk space and bandwidth!
Hosting24 is offline
Reply With Quote
View Public Profile
 
Old 10-15-2009, 12:27 PM Re: includes: .php or .shtml
thefandango's Avatar
Extreme Talker

Posts: 189
Trades: 0
I'm not sure there is a huge amount of difference. although you need SSI to use shtml. For what its worth I would suggest php, because if you later add php code you can just dump it in rather than changing everything else as well.
thefandango is offline
Reply With Quote
View Public Profile
 
Old 10-15-2009, 02:55 PM Re: includes: .php or .shtml
MDwebdev85's Avatar
Extreme Talker

Posts: 162
Location: Maryland
Trades: 0
use php
MDwebdev85 is offline
Reply With Quote
View Public Profile
 
Old 10-15-2009, 06:13 PM Re: includes: .php or .shtml
bmcoll3278's Avatar
Super Talker

Posts: 118
Name: Brian Collins
Trades: 0
Here is a thread to a tutorial that will show you how to do it with php and sql check it out. I hope I am not breaking any rules putting a link to another forum here.
http://www.freewebsitetemplates.com/...atabase-10354/
__________________
I hope to build a site with something for every one
http://www.bmcoll.com
bmcoll3278 is offline
Reply With Quote
View Public Profile Visit bmcoll3278's homepage!
 
Old 10-15-2009, 07:26 PM Re: includes: .php or .shtml
Novice Talker

Posts: 8
Trades: 0
Quote:
Originally Posted by hoco View Post
I want to use includes for my menus that will be on every page so that I don't always have to go on every single page to make changes.

Which extension should i use :
.php or .shtml ?

Which will run faster?

It doesnt matter what extension you use. You should focus on how many images do you have and its file type or file size coz it affects the performance of the site. You should also consider the execution perfomed by the script ( ie. query, function, loops)
chieina is offline
Reply With Quote
View Public Profile
 
Old 10-15-2009, 11:51 PM Re: includes: .php or .shtml
Average Talker

Posts: 20
Name: Hal
Trades: 0
Thanks to all.

I'm going to start recoding it all with PHP tonight.

I can't see any advantage to using .shtml.
hoco is offline
Reply With Quote
View Public Profile
 
Old 10-16-2009, 05:12 AM Re: includes: .php or .shtml
Extreme Talker

Posts: 172
Trades: 0
Good choice! PHP allows you to add extra features to included files (so you can add various classes and other stuff in the future if it's needed)
__________________
Daniel, Helpdesk Leader
Hosting24.com Web Hosting - First class web hosting services.
Reseller Hosting - Provide unlimited disk space and bandwidth!
Hosting24 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to includes: .php or .shtml
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.13217 seconds with 13 queries