note 61412 added to function.move-uploaded-file

From: Date: Thu, 02 Feb 2006 20:02:04 +0000
Subject: note 61412 added to function.move-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-102892@lists.php.net to get a copy of this message
In addition to the file extension checking. A simply way of getting the extension (regardless of size): $efilename = explode('.', $filename); $ext = $efilename[count($efilename) - 1]; Note: This is *could* cause a ~0.01s delay because you're not using COUNT() to initialize a variable by itself. Refer to googling similar: php count function performance ---- Server IP: 64.71.164.2 Probable Submitter: 66.193.169.36 ---- Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61412 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61412&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61412&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61412&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61412&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61412&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61412&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61412&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61412&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102892) next »