homepage Welcome to WebmasterWorld Guest from 54.166.148.189
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

    
Rss + Php?
disgust




msg:1541559
 1:45 am on May 10, 2004 (gmt 0)

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?

 

sidyadav




msg:1541560
 2:13 am on May 10, 2004 (gmt 0)

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.

Sid

mipapage




msg:1541561
 6:48 am on May 10, 2004 (gmt 0)

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...

georgiecasey




msg:1541562
 1:23 am on May 16, 2004 (gmt 0)

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.

corz




msg:1541563
 5:34 pm on May 31, 2004 (gmt 0)

or I guess you could just add..

header("content-type: application/rss+xml");

to the top of your php

;o)
(or

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