Hi all,

I am trying to copy an image from an external server and save it to my own.
I have the following script to do this for a txt file and it works great!

?>

$page  = "../temp/yep.txt";

$date = date("http:/www.example.com/yep.txt");

$cartFile = fopen("$page","a");
fwrite($cartFile,$date,strlen($date));
fclose($cartFile);

?>

But i can't get it to work for image files - the images are saved and
displayed on screen as a whole bunch of rubbish.

I'd appreciate any help you can give me



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to