Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-05-2004, 08:31 AM
WebProWorld Member
 

Join Date: Apr 2004
Location: Sydney , Australia
Posts: 28
violet RepRank 0
Default Dreamweaver template vs ssi

I was wondering if you all thought -

would I be better off using ssi to include my menu on every page, rather than using a custom dreamweaver template .

I know that the template way takes ages to go through every single page and make even the smallest change and then upload it all again...

But are shtml pages acceptable by all browsers etc??

Or would I be better off just biting the bullet and learning how to build a whole site in php with mySql rather than just bits of pages...

Feedback is greatfully appreciated
http://www.spikefiles.com/shtml - the shtml link is the new layout i'm wondering about
__________________
Please Review my site - All reviews will be reciprocated! - Thank you.
Reply With Quote
  #2 (permalink)  
Old 04-05-2004, 06:32 PM
WebProWorld Pro
 

Join Date: Mar 2004
Location: Pittsburgh, PA, USA
Posts: 114
ChrisRC RepRank 0
Default

browsers and search engines generally don't care what extension you use. back in ... 98? 99? when I last used .shtml pages I never had trouble. I doubt things have become worse.

If you're serious about web development, I strongly recommend learning some server-side scripting language - and I'm a big fan of PHP myself. Of course, that doesn't mean you can't go to the SSI for now, and just switch over to a PHP include() of the same content later, followed by a complete database driven template system (which isn't always the best solution anyway) eventually.
Reply With Quote
  #3 (permalink)  
Old 04-05-2004, 06:53 PM
WebProWorld New Member
 

Join Date: Apr 2004
Posts: 13
JoeSurfer RepRank 0
Default

If you want to avoid using the .shtml extension, you can put the following lines in your .htaccess file, it will cause the server to parse ssi with the html extension.

Code:
AddType text/html .shtml .html
AddHandler server-parsed .shtml .html
I'm assuming an apache setup :)
Reply With Quote
  #4 (permalink)  
Old 04-05-2004, 06:56 PM
swstyles's Avatar
WebProWorld Pro
 

Join Date: Aug 2003
Location: Phoenix, AZ
Posts: 167
swstyles RepRank 0
Default

With dreamweaver templates:
If you change the menu in anyway, you have to upload every page to the server that is affected by the template change. If you use ssi, you make the change to the one file and the whole site changes with that one file change.

The technology doesn't matter, ssi, php, asp, cold fusion, its all the same principle.

anytime you can change one file only without having to upload many files is very resourceful.
__________________
Daniel M: South West Styles/STEELid
daniel@steelid.com
http://www.steelid.com
http://www.thephototool.com
Reply With Quote
  #5 (permalink)  
Old 04-06-2004, 12:47 AM
WebProWorld Member
 

Join Date: Apr 2004
Location: Sydney , Australia
Posts: 28
violet RepRank 0
Default

Joe Surfer - That very small snippet of code could prove to be incredibly helpful - and more than likely answered my next question which was to be can I include php and ssi in the same page...

ChrisRC - I too am a huge fan of php, and am doing my best to learn all about it. I've implemented a couple of scripts that other people have written, and then followed a tutorial on how to set up my own blogging system with php.

I've gone through the tutorial at www.w3schools.com which has given me a very limited and not too crash hot knowledge of the principal of php.

I guess now I just have to find a good tutorial to take me through how to build my whole site with php and using mySql database.

Whilst I'm learning how to do the php thing, I think I'll stick with ssi...

Here I was thinking I was finally getting with the times and using ssi(just got a great new host that actually gives me features!!)and you haven't used it since tha late 90's... boy If you had seen what I was building in the 90's.. arghh..

Thanks again guys for your feedback it has been incredibly helpful
__________________
Please Review my site - All reviews will be reciprocated! - Thank you.
Reply With Quote
  #6 (permalink)  
Old 04-06-2004, 05:35 AM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

I would lean towards learning php.
I found Dreamweaver Templates to be a pain.
By the way, just because you use php for your pages, doesn't mean you need to have MySQL...

Maybe you knew already, but it sounded like you equated php with needing MySQL... not necessairly so
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #7 (permalink)  
Old 04-07-2004, 03:21 AM
WebProWorld Member
 

Join Date: Apr 2004
Location: Sydney , Australia
Posts: 28
violet RepRank 0
Default

Thanks Cyanide.. Ive got the basics of php down, How it works etc..

I know I can have php without mySql, Ive just read and been told that combining the two is the best way to go - I think one book called it a powerful combination..

But thanks for the heads up! Greatly appreciated
__________________
Please Review my site - All reviews will be reciprocated! - Thank you.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , ,



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


Search Engine Optimization by vBSEO 3.2.0