Welcome to WebmasterWorld Guest from 18.104.22.168 , register , free tools , login , search , subscribe , help , library , announcements , recent posts , open posts Accredited PayPal World Seller
I've installed configured & tested Carp and it works fine however I have a problem in that all of my pages are shtml and rely heavily on server side includes which don't display if I change the file extension to .php.
I'm no programmer and know almost nothing about php, I can just install and configure scripts (if they're well documented).
Is there a way to use server side includes in .php pages?
werty msg:1542221 5:35 am on Mar 12, 2005 (gmt 0)
Hello DaGrip, and WebmasterWorld [ webmasterworld.com].
These are the 2 solutions that I dreamed up:
1. Try using PHP includes instead of SSI
2. Try configuring your server to parse SSI in .php files.
I have an apache server and wanted to use SSI with .html files instead of .shtml files and used the following code in a .htaccess file in my root folder:
AddHandler server-parsed .html
I am guessing that you could try an .htaccess file with the following code:
AddHandler server-parsed .php
I did a bit of research for you and it looks like you may find more detailed answers in this thread:
Parse HTML or not [ webmasterworld.com] DaGrip msg:1542222 11:39 pm on Mar 16, 2005 (gmt 0)
Thanks for the reply.
My solution was to put the php code in a seperate php file and use an SSI to include it on the page. It seems the quickest solution as changing all the SSI's to php includes would have taken ages!