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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--
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]