I'd like to know how I can have a copy of an online file to make a cache of it... I'm trying to do a cache class that copies a RSS file from a webpage....
ex: $cache->copyFile("http://www.phpbuilder.com/rss_feed.php?type=articles&limit=20","phpbuilder.rss");
Now I'd have a copy of the RSS file from phpbuilder...
You copy it just as you would a local file, except that you specify the remote URL as the filename.
Note that the Web server must have permission to write in the destination directory, or you will generate an error message and not save the file.