Reply
Server Side Includes don't work
Old 06-27-2009, 07:07 PM Server Side Includes don't work
Novice Talker

Posts: 5
Name: Stephanie
Trades: 0
So you know how you can link a stylesheet to every page so you only have to change it once?

Well I need that same idea only for my menus and other stuff that will be on every page so that I don't always have to go on every single page and change things.

I read and found Server Side Includes but they don't work. I'm not stupid, I know I did it right. It just won't work on my computer.

What else can I use to do that and where can I go to learn it?
stephaniebeard is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 06-28-2009, 12:18 AM Re: Server Side Includes don't work
GeekSpecialties's Avatar
Super Talker

Posts: 113
Name: Leonard
Location: Minnesota, USA
Trades: 0
Your server has to support this. Check to wee what type of server technologies are running on your webhost. PHP is simple, if you have PHP on your server. Page needs to have .php extenstion instead of .html
Code:
<?php include("filename.html"); ?>
http://en.wikipedia.org/wiki/Server_Side_Includes

Last edited by GeekSpecialties; 06-28-2009 at 12:20 AM..
GeekSpecialties is offline
Reply With Quote
View Public Profile Visit GeekSpecialties's homepage!
 
Old 06-28-2009, 04:21 PM Re: Server Side Includes don't work
LadynRed's Avatar
Super Moderator

Posts: 8,823
Location: Tennessee
Trades: 0
Unless you've got a web server installed on your working computer, the includes aren't going to work. As noted above, the includes HAVE to be served from a web server.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-28-2009, 05:03 PM Re: Server Side Includes don't work
Junior Talker

Posts: 1
Name: alessandro sepich
Trades: 0
hi,

in order to make working server side codes locally in you pc, you need you need it to be a server.

to do so you should install Apache and PHP (or a windows solution that I do not suggets). Then generaly you want to install some kind of database (MySQL is the best for PHP). you may download all this from their official sites, but it is little hard to install all of this and make it work.

I found this solution very helpfull:

http://www.easyphp.org/

it's a windows application that install Apache, PHP, and MySQL and other usefull stuff in one time on your pc.

hope you find it help full
aslabs is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Server Side Includes don't work
 

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.12484 seconds with 13 queries