Try putting a dummy .xml filename into the url.
http://www.somewhere.krakow.pl/feed.php/feed.xml
When Apache fails to find the file /.../feed.php/feed.xml, it'll run
/.../feed.php instead.
Setting the content-type header should work though. And depending on how
popular the feed is, generating a static version of the file isn't a bad
idea. You would update the file whenever you add a new story. Since that
should happen less often then retrieval of the feed, it's more efficient.
Uzytkownik "Troy" <troy@morpheus.No_SpAm.net> napisal w wiadomosci
news:J2lKb.9$w5.121822330@newssvr30.news.prodigy.c om...[color=blue]
> Hi-
>
> I am attempting to set up an RSS feed using PHP. It would be convenient[/color]
for[color=blue]
> me to embed PHP into an xml file like I would do to an HTML file in order[/color]
to[color=blue]
> create the XML, however the apache server does not realize that it's PHP
> content and the PHP engine is not run against that code. so I have to[/color]
call[color=blue]
> it feed.php instead of feed.xml, and most of the rss readers don't
> appreciate this.
>
> My alternative is to create the XML file every day or so (using PHP or
> whatever), however that does not guarantee that the person requesting the
> rss feed gets up to date info.
>
> I would really like to know if there is a way to create the XML file on[/color]
the[color=blue]
> fly using PHP without modifying the apache server.
>
> Thanks,
> troy
>
>[/color]