RE: [PHP] uploading a nonlocal images
| From: | Cynic | Date: | Mon, 08 Jan 2001 15:05:29 +0000 |
| Subject: | RE: [PHP] uploading a nonlocal images | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33234@lists.php.net to get a copy of this message | ||
file() won't create a file pointer, it'll read the whole
file into an array(). use fopen() to obtain a file pointer
for use in other filesystem functions.
At 15:59 8.1. 2001, Moritz Petersen wrote the following:
--------------------------------------------------------------
>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.
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz