#24896 [Opn->Bgs]: Upload example 18-2 confusing about version needed for is_uploaded_file()

From: Date: Sat, 31 Jan 2004 11:26:27 +0000
Subject: #24896 [Opn->Bgs]: Upload example 18-2 confusing about version needed for is_uploaded_file()
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969358627@lists.php.net to get a copy of this message
ID: 24896 Updated by: nlopess@php.net Reported By: tycje at hotmail dot com -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: Irrelevant PHP Version: Irrelevant New Comment: Everything is correct. is_upload_file was introduced in PHP 4.0.3. Previous Comments: ------------------------------------------------------------------------ [2003-07-31 17:20:47] tycje at hotmail dot com Description: ------------ On http://www.php.net/manual/en/features.file-upload.php there is an example 18-2, which mentions: "// In PHP earlier then 4.0.3, use copy() and is_uploaded_file() instead of move_uploaded_file" I find this quite confusing, because in the documentation of is_uploaded_file() at http://www.php.net/manual/en/function.is-uploaded-file.php it says: "is_uploaded_file() is available only in versions of PHP 3 after PHP 3.0.16, and in versions of PHP 4 after 4.0.2." So, for versions 4 earlier than 4.0.3, the example is wrong. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24896&edit=1

« previous php.doc (#969358627) next »