Page 1 of 1

Dynamic filename for RSS feed

Posted: Tue Aug 23, 2011 1:44 pm
by andrewgerm
Good day all

I'm busy creating some code for a dynamic RSS feed for my website users. I'd like to have a link to this appear on their personal pages.

I've got the base code for retrieving the data from the DB, and outputting the XML (although I want to change this from basic array at a stage to something better).

What I'd like to have, is to have the RSS link on their pages point to a personal URL / filename.

What would be best? Create a unique filename dynamically for each member (and how?). Or use mod rewrite and place this below their personal URL?

Any comments / suggestions welcome.

Thank you in advance :)

Re: Dynamic filename for RSS feed

Posted: Fri Aug 26, 2011 9:43 am
by Jade
Why not do something like rssfeed.php?user=username and then you can $_GET the username (but escape it before you use it in your code) and generate their RSS data from there. Then you only need one file for everyone.