homepage Welcome to WebmasterWorld Guest from 54.167.177.180
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
Forum Library, Charter, Moderators: bill & werty

RSS, ATOM, and Related Technologies Forum

    
rss & shtml
DaGrip

5+ Year Member



 
Msg#: 205 posted 6:30 pm on Mar 11, 2005 (gmt 0)

I am trying to display rss feeds on my site without using javascript.

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?

Thanks

 

werty

WebmasterWorld Administrator 10+ Year Member



 
Msg#: 205 posted 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

5+ Year Member



 
Msg#: 205 posted 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!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved