Re: File uploads and handling
| From: | Greg Donald | Date: | Fri, 29 Oct 2004 01:27:38 +0000 |
| Subject: | Re: File uploads and handling | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200599@lists.php.net to get a copy of this message | ||
On Thu, 28 Oct 2004 19:04:27 -0500, Philip Thompson <prthomp@uark.edu> wrote:
> > manual > Handling file uploads
> >
> > to see how it all works.
>
> Yeah, that was not useful at all.
That's how the rest of us learned. The examples on the page is pretty
clear to me.
> That's what I originally looked at.
> If anyone has some "code" that shows how to reference the actual file,
> then that would be helpful. I have pulled my hair out long enough over
> this one.
>
> I did try this, but nothing changed (b/c it's just an array):
>
> if (is_uploaded_file(_FILES['userfile']))
> $handle = fopen($_FILES['userfile'], "r");
$_FILES['userfile']['name'] is the file.
$_FILES['userfile']['tmp_name'] is the name of the file.
$_FILES['userfile'] is as you stated 'just an array'.
It's all right there in the manual.
http://php.net/manual/en/features.file-upload.php
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/