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

RSS, ATOM, and Related Technologies Forum

    
SSI and RSS question
adding rss to personal websites
yesyoucantoo




msg:3337504
 10:10 pm on May 11, 2007 (gmt 0)

Greetings
Im wanting to add RSS to my sites and I have managed to enter HTT access and have an example of my site <snip>

My trouble is editing the php file.

Ive entered
<p><!--#include virtual="/rssfeeds.php" --> </p>
to my website.

I have my PHP file as
<?php
$olderror_reporting =error_reporting(0);
include ("http://www.example.com/rss3/rss.php?url=http%3A%2F%2Fnews.google.com%2Fnwshp%3Fhl%3Den%26tab%3Dwn%26q%3D%26
output%3Drss&newpage=1&chead=1&atl=1&desc=1&owncss=&eleminate=&auth=1&dts=1&width=300&max=5&tlen=0&rnd=1&bt=3
&bs=Double&nmb=&ntb=&naf=&nst=&nwd=0&nht=0&dlen=0&lstyle=-1&lc=Blue&bg=White&bc=Gray&spc=&ims=&tc=&ts=11&tfont
=Verdana,+Arial,+Sans-serif&rf=".$HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF']."&phpout=1");
error_reporting($olderror_reporting);
?>

My question is how to edit the above text to include
my RSS link
<snip>

Any help would be much appreciated.
Thanks
Duncan

[edited by: werty at 10:51 pm (utc) on May 11, 2007]
[edit reason] Snipped urls (please see TOS # 13). Also broke scrolling in code [/edit]

 

yesyoucantoo




msg:3337599
 12:17 am on May 12, 2007 (gmt 0)

RSS link to add to pages is an .xml file

Papa




msg:3353775
 6:51 pm on May 30, 2007 (gmt 0)

I have added several RSS feeds into more than one web site without any modification to the .htaccess file. However, the process involved Java Script rather than PHP. Actually, there is a site that will process the RSS feed (xml format) and convert into Java Script which can then easily be added into your existing site's html. Check <snip> and see if that approach is not more practical.

Good luck...

Papa

[edited by: werty at 9:58 pm (utc) on May 30, 2007]
[edit reason] Snipped url (please see TOS # 13) [/edit]

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