RE: [PHP] uploading a nonlocal images

From: Date: Mon, 08 Jan 2001 14:59:09 +0000
Subject: RE: [PHP] uploading a nonlocal images
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-33232@lists.php.net to get a copy of this message
You can use file() to create a filepointer, then fread() to read the file and save it to your local disk. Hope it helps, Mo. > I want to allow users to put in an URL to an image in a form and > then copy the image to my server then to the database. I can > upload local images using a form put when it is not on the users > computer it fails. I want the user to be able to input > http://mydomain.net/images/image.gif and we take it from there. > > Are there any classes or methods available to accomplish this.

« previous php.general (#33232) next »