View Full Version : RSS and dynamic php links
spenoir
11-08-2004, 03:08 PM
I have site site that relies on php templates.
Can I use dynamic links or php in my rss feed? :eek:
Alex Vincent
11-08-2004, 09:17 PM
I don't see why not. :) The only hard part is in forcing Apache to run the RSS file through the PHP interpreter.
I've got an article I want to write for XML.com or someone else on precisely how to do this; could I use your RSS feed and intents as an example? (Meaning I'd like to work together with you on getting it to work, and then use you as a real-world example.)
gsnedders
11-08-2004, 10:28 PM
I have done this before, you do however have to put in your .htaccess file something like this: <Files rss.xml>
ForceType application/x-httpd-php
</Files>Then, in you RSS feed/PHP file: header ("Content-Type: application/xml");
As for a full XML/PHP page, I deleted it a while back...
spenoir
11-09-2004, 03:15 PM
With pleasure alex, i would like to work with you on creating dynamic rss feeds using php. I found this article on how you can achieve dynamic rss feeds using php:
http://www.tiffanybbrown.com/articles/viewarticle.php/66
I haven't actually got an rss feed for my site as yet, i'm just working out what the best way of creating one is and would like to make it dynamic.
I think our web server is a windows server though.
Alex Vincent
11-11-2004, 06:46 AM
Okay. I want to do something a little more generic, like demonstrate how you can have an XML file with PHP processing instructions inline. So if you follow the instructions in that article, I'll go one better with your results. Basically, I want to combine the article you linked to, an article (http://www.tiffanybbrown.com/viewqb.php/211) that one linked to, and a couple little tricks I have up my sleeve and have been waiting for an opportunity to write about.
If it's Apache, it shouldn't matter what platform it runs on with what I have in mind :D
Give me a ring when you get that far. Or, if you want me to actually help you in developing it where Mrs. Brown's site (nice design, that) tries to get you, let me know.
spenoir
11-18-2004, 03:51 PM
I have tried to create a dynamic php feed,
I'm not happy posting it as an attachment though... :o
Alex Vincent
11-19-2004, 07:40 AM
...and I'll answer the PM you sent me, probably on Sunday or sometime next week. (I might be a touch unresponsive, as a patch I've been waiting on in Mozilla code just got cleared for checkin, so I'll be working heavily to get stuff caught up.)
spenoir
11-19-2004, 01:29 PM
I've been testing my rss feed based on the example in the article above.
I suppose one needs to connect to the database in the normal way ie. username, password etc. so this code would need adding to the article example.
If anyone has any other good examples of dynamic rss, that would be greatly appreciated :p
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.