Wednesday, 2 June 2010

How hard can it be? (part 2)

Answer: not all that hard - mostly!

The feed is working quite nicely, opening up an xml file saved from the feed, reading out what I want it to read out, and outputting it as pleasantly formatted HTML. Fantastic.

Now all I need to do is to figure out how to get it to read the XML file on the server itself. That's proving tricky, and I'm not sure why: the links I'm creating to the file just don't seem to work.

(Edit: as I suspected - it's because the script to get the XML file is hosted on a different server to the one that I'm trying to pull the RSS feed from, so it's a security issue. Hmm.)

(Further edit: and the webserver that I'm using doesn't like using PHP to access files not stored on that server. Trickier & tricker. One solution would be to figure out a way of caching the feed file each evening, so that I could just read from that file instead; but I'm not quite sure how to approach that. Will require further thought, apparently.)

More news later.

No comments:

Post a Comment