Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

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

Posts: 21
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
 
 
Register now for full access!
Old 10-15-2009, 01:48 AM Re: includes: .php or .shtml
Brian07002's Avatar
Defies a Status

Posts: 2,138
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.
__________________
Made2Own

Please login or register to view this content. Registration is FREE

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

Posts: 744
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.
__________________
34343639363436653237373432303635373837303635363337 34323037343638363137343263323036343639363432303739 366637353366
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
Ultra Talker

Posts: 339
Trades: 0
I prefer using PHP (even if PHP files contain nothing except plain HTML code)
__________________
Daniel, Helpdesk Leader

Please login or register to view this content. Registration is FREE
- First class web hosting services.

Please login or register to view this content. Registration is FREE
- 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: 215
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.
__________________

Please login or register to view this content. Registration is FREE

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: 209
Location: North Carolina
Trades: 0
use php
__________________

Please login or register to view this content. Registration is FREE
MDwebdev85 is offline
Reply With Quote
View Public Profile Visit MDwebdev85's homepage!
 
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

Please login or register to view this content. Registration is FREE
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: 11
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: 21
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
Ultra Talker

Posts: 339
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

Please login or register to view this content. Registration is FREE
- First class web hosting services.

Please login or register to view this content. Registration is FREE
- 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.84406 seconds with 12 queries