Hi all,
I need some help on copying a file from one server to another using http.
I know this is probably a security risk and apache probably prevents this from happening, but all I need to do is copy images accross.
Here's my current code
$url = "http://www.domain.com/images/image.jpg";
if(!copy("$url","_datafiles/property/image.jpg"))
{
echo"<b>Failed</b><br>\n";
}
else
{
echo"<b>Done</b><br>\n";
}
Can you see what I am trying to do here?
Thanks heaps.