Currently, I have RSS/XML feeds written to the database, but I want to make these publicly accessible.
For example, for Module A, I would like it so you could go to feed.php?module=A and it would generate a feed with a .xml file-ending, e.g. feed.xml.
Example XML code from database:
[?xml version="1.0" encoding="UTF-8"?]
[rss version="2.0"]
[channel]
[title]Module news for module A: D&D[/title]
[description]Desc for module here[/description]
[language]en[/language]
[item]
[title]test article[/title]
[pubDate]Tue, 20 Sep 2011 16:14:20[/pubDate]
[description]A test article would go here.[/description]
[link]http://www.google.com[/link]
[author]esujdt[/author]
[guid]http://www.google.com[/guid]
[/item]
[/channel]
[/rss]
Any help would be much appreciated.
Just issue a header() to specify content-disposition, which lets you provide a filename: