| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Rss + Php? |
what's the best way to go about this, if the info is pulled from a database and you use php?
if the feed is otherwise valid, but has a php extention, is that okay?
Yeah, that usually works.
And if I'm not mistaken, PHP/Post nuke does the same thing.
I've never seen a problem with this as long as it validates/works in parser's.
In a bit of a 'blog' script I threw together for a client, I generated an RSS 2.0 feed using PHP and mySQL. I deliver it using this in my htaccess file:
RewriteRule ^path/to/file/rssfeed.xml$ rss_feed.php [L]
No idea if I named that right etc. but it works and gets spidered. I think I have it zipped too, not that it should need it, just the site wrapper has it on...
The 'clever' way to do this, ie my way, is to add .xml to the list of pages that PHP parses in the Apache httpd.conf file. Then you can have the .xml extension for your RSS feed with PHP.
or I guess you could just add..
to the top of your php
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved