PHP 7.2.0 Beta 1 Released

Voting

Please answer this simple SPAM challenge: min(five, one)?
(Example: nine)

The Note You're Voting On

~caetin~ ( at ) ~hotpop~ ( dot ) ~com~
13 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