note 100705 deleted from features.file-upload.errors by danbrown

From: Date: Mon, 01 Nov 2010 14:31:46 +0000
Subject: note 100705 deleted from features.file-upload.errors by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-173656@lists.php.net to get a copy of this message
Note Submitter: Chris Rush ---- @Jeff Miner It's improper to do: if($_FILES['userfile']['error']) Returning an int error code is commonplace practice in the development world, as it allows you to specify more than one error condition. The proper way to check this would be against the Predefined Constant: if($_FILES['userfile']['error'] == UPLOAD_ERR_OK)

« previous php.notes (#173656) next »