Retrieve remote XML data with PHP

Posted by rrrfusco on Stack Overflow See other posts from Stack Overflow or by rrrfusco
Published on 2010-05-29T06:54:52Z Indexed on 2010/05/29 7:02 UTC
Read the original article Hit count: 242

Filed under:
|

I'm currently reading a regularly updated XML file with PHP (simpleXML).

I'd like to reduce calls to the remote server by reading a cache file on my web server, then after some time, retrieving a new copy of the remote file.

Is this an accepted practice for reading remote XML files, then parsing? Can anyone offer some suggestions on how to go about this in PHP, or perhaps there are some PEAR classes that deal with this?

© Stack Overflow or respective owner

Related posts about php

Related posts about Xml