Please answer this simple SPAM challenge: one plus six?
(Example: nine)

The Note You're Voting On

~caetin~ ( at ) ~hotpop~ ( dot ) ~com~
15 years ago
From the manual:

     If no file is selected for upload in your form, PHP will return $_FILES['userfile']['size'] as 0, and $_FILES['userfile']['tmp_name'] as none.

As of PHP 4.2.0, the "none" is no longer a reliable determinant of no file uploaded. It's documented if you click on the "error codes" link, but you need to look at the $_FILES['your_file']['error']. If it's 4, then no file was selected.

<< Back to user notes page

To Top