Transfering an image

From: Date: Thu, 26 Apr 2001 01:51:41 +0000
Subject: Transfering an image
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50410@lists.php.net to get a copy of this message
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

« previous php.general (#50410) next »