On Thu, 28 Oct 2004 19:04:27 -0500, Philip Thompson <prthomp@xxxxxxxx> 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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php