note 55377 deleted from features.file-upload by felipe

From: Date: Sun, 30 Dec 2007 17:53:22 +0000
Subject: note 55377 deleted from features.file-upload by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134322@lists.php.net to get a copy of this message
Note Submitter: dan at DLC2 dot com ---- Are you struggling to implement these code samples for "file upload" or "multiple file upload"? Are you still scratching your head why they don't work?? I tried everything, until I realized that my version of PHP was too old! Look at these tidbits (collected from pages at PHP.NET for your enjoyment): Requires PHP v4.1 - The $_FILES array Requires PHP v4.2 - The "error" sub-array - example: $_FILES["userfile"]["error"] Requires PHP v4.3 - The constants for "error" sub-array - example: UPLOAD_ERR_OK (value 0) So, if you have PHP v4.0.X or earlier, use the $HTTP_POST_FILES variable and just do without the error sub-array and it’s constants. It still works good! If you found this article useful, send praise via email. If this was a life-saver, send chocolate.

« previous php.notes (#134322) next »