|
I tried your script on my server and setting the content type header on line 83 fails, no idea why. I had to silence this error (by adding @ in front of header) to get it going.
Also, as you mention, for performance reasons it would be much better to implement this as a cron run script that generates a static xml file.
|