note 56247 added to features.file-upload

From: Date: Sun, 28 Aug 2005 17:53:56 +0000
Subject: note 56247 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-94303@lists.php.net to get a copy of this message
The post dev at kiwicore dot org 13-Oct-2004 12:58 Has an error in the no ext bit, else { while(file_exists($destDir.$file['name'].($i?'_copy_'.$i:''))){ ++$i; $file['name'] = $file['name'].($i?'_copy_'.$i:''); } a simple fix should read, else { $file_prefix = $file['name']; while(file_exists($destDir.$file_prefix.($i?'_copy_'.$i:''))){ ++$i; $file['name'] = $file_prefix.($i?'_copy_'.$i:''); } ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56247 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56247&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56247&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56247&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56247&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56247&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56247&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56247&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#94303) next »