note 61427 added to function.move-uploaded-file

From: Date: Fri, 03 Feb 2006 06:35:52 +0000
Subject: note 61427 added to function.move-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-102909@lists.php.net to get a copy of this message
To retrieve the file extension, I think this example makes more sense than the one below. $ext = explode(".", $file); $ext = array_pop($ext); It doesn't have to count() the array and then subtract 1 to point to the proper array element, it simply isolates the last element of the array, and discards everything else. ---- Server IP: 66.207.199.35 Probable Submitter: 72.141.129.21 ---- Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61427 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61427&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61427&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61427&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61427&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61427&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61427&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61427&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61427&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102909) next »