Msg#: 3337502 posted 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]
Msg#: 3337502 posted 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.
[edited by: werty at 9:58 pm (utc) on May 30, 2007] [edit reason] Snipped url (please see TOS # 13) [/edit]