Retrieve remote XML data with PHP
- by rrrfusco
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?