From 4a30b05d5afb2bc20e1ab78d1a0627d09596eb07 Mon Sep 17 00:00:00 2001 From: Torben Wilson Date: Thu, 7 Feb 2002 01:45:38 +0000 Subject: [PATCH] Replaced the userland version of is_uploaded_file() for older versions of PHP, except this time in the is_uploaded_file refentry. There are still people who have no choice but to run older versions. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@69678 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/filesystem.xml | 52 ++++++++++++++++++++++++++++++++-------- 1 file changed, 42 insertions(+), 10 deletions(-) diff --git a/functions/filesystem.xml b/functions/filesystem.xml index 1b34b88f68..0b73d24249 100644 --- a/functions/filesystem.xml +++ b/functions/filesystem.xml @@ -1,5 +1,5 @@ - + Filesystem functions Filesystem @@ -1923,15 +1923,10 @@ if($fp){ Description - - boolis_uploaded_file - stringfilename - - - - This function is available only in versions of PHP 3 after PHP - 3.0.16, and in versions of PHP 4 after 4.0.2. - + + boolis_uploaded_file + stringfilename + Returns &true; if the file named by filename was @@ -1948,6 +1943,43 @@ if($fp){ system. + + 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. If you are stuck using an earlier version, you can + use the following function to help protect yourself: + + + This will not work in versions of PHP 4 + after 4.0.2. It depends on internal functionality of PHP which + changed after that version. + + + + +]]> + + + See also move_uploaded_file, and the section Handling file uploads