You are overthinking it imho.
I would not do the images if I were you.
In my camfoxes.com I am letting chaturbate serve up the images. The only thing I am pulling serverside is the data and it appears to do fine.
just imho.
Pulling the xml file is pretty easy. use file_get_contents() to open the remote file. Use file_put_contents to write the local copy to disk.
$flname="/server file path/filename";
$url="xml url";
$data=file_get_contents($url);
if(!empty($data))
{
file_put_contents($flname,$data);
}
else
{
echo "Did not get a file back<br>\n";
}
.
__________________
All cookies cleared!
|