note 32887 deleted from features.file-upload by didou
| From: | didou@php.net | Date: | Sun, 27 Jul 2003 16:13:49 +0000 |
| Subject: | note 32887 deleted from features.file-upload by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-52751@lists.php.net to get a copy of this message | ||
Note Submitter: ben@benmcmillan.com
----
After much debugging, I finally realized that the $userfile vars new versions of php creates for
convenience, arent convenient if you want to write a function to handle uploading. Those variables
that it creates arent global in scope like $_FILES (and $_REQUEST, etc) and thus cant be accessed
from inside functions (and uploading fails). Since the $_FILES array holds the same data, use it
instead. Hope this prevents headaches.