Re: File uploads in PHP
| From: | Data Driven Design | Date: | Fri, 17 Aug 2001 03:11:15 +0000 |
| Subject: | Re: File uploads in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-63117@lists.php.net to get a copy of this message | ||
This is a very good tutorial on the subject.
http://www.thickbook.com/extra/php_fileupload.phtml
Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117
http://www.datadrivendesign.com
Phone: (386) 226-8979
Websites That WORK For You
----- Original Message -----
From: "Dr. Evil" <drevil@sidereal.kz>
To: <php-general@lists.php.net>
Sent: Thursday, August 16, 2001 10:06 PM
Subject: [PHP] File uploads in PHP
>
> My PHP script needs to receive some files. I've seen sites which
> accept them; they have a Browse button which lets the user select a
> file to send. That's what I want to do.
>
> I have a few questions about this. First of all, this is with
> php4.06. Secondly, the files are all going to be images, and not very
> large: no more than 50k.
>
> What's the best way to do this? I notice that PHP can store these
> files on disk, but I'm going to be storing them in a DB. I would
> rather receive them directly into a PHP variable. Is this possible?
> Or should I take them in a file, and then read them back in to a
> variable?
>
> Also, if they need to go into a file, which directory is safest for
> this? /tmp contains some important files. And finally, how do I
> limit the maximum file size that PHP will accept?
>
> Thanks
>
> --
> 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
>
>