I am using the following code to display images hosted on a remote server
<?
if($fp = @fopen([url]http://www.xxx.com/listing_img/[/url] . $row[Id] . 1.jpg, r))
{
?><img border=0 src=http://www.xxx.com/listing_img/$row[Id]1.jpg width=100 height=65>
<?php
}
else if ($fp = @fopen([url]http://www.xxx.com/propImgs/[/url] . $row[Id] . 1.jpg, r))
{
?><img border=0 src=http://www.xxx.com/propImgs/$row[Id]1.jpg width=100 height=65>
<?php
}
else
{
?><img border=0 src=http://www.xxx.com/un-small.gif width=100 height=65>
<?php
}
?>
I am wondering if this can somehow be modified to download the image to my server instead of diaplying the image?