Re: REMOTE FILE ?
| From: | Wolfram Kriesing | Date: | Wed, 22 May 2002 08:30:57 +0000 |
| Subject: | Re: REMOTE FILE ? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6317@lists.php.net to get a copy of this message | ||
Fabien MARTY wrote:
Hello, I'm looking for a Remote_File class in PEAR. I want to get news from another site through RSS remote files. But i don't want to access to to the remote site at every time i display its news on my site. Because, if the remote site is down or slow... So I need a class which make a local cache copy of the remote file. Every x hours, the cache is updated. But if the remote site is down, the local cache copy is keeped. So is there a class like this in PEAR ? or in developpement ? If not, and of course if you're interested in, i would be very proud to make it by using PEAR/CACHE and PEAR/HTTP_REQUEST. i think this is exactly the way to go, use PEAR:Cache and the RSS class from Martin and it should be easily realizable.you can simply cache the result from the RSS-class, you dont need to cache the rss-file itself here. hope it helps -- Wolfram ... translating template engine .... http://sf.net/projects/simpletpl ... authentication system .... http://sf.net/projects/auth