note 66166 added to function.move-uploaded-file

From: Date: Tue, 16 May 2006 14:04:29 +0000
Subject: note 66166 added to function.move-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-111378@lists.php.net to get a copy of this message
just a simple function which strips the extension, no mather how long function /* string */ strip_ext( /* string */ $file_name ) { if ( ( $pos = strrpos( $file_name, '.' ) ) == FALSE ) return ( FALSE ); return ( substr( $file_name, ++$pos ) ); } ---- Server IP: 66.163.161.117 Probable Submitter: 195.113.26.53 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php Edit -- http://master.php.net/note/edit/66166 Del: integrated -- http://master.php.net/note/delete/66166/integrated Del: useless -- http://master.php.net/note/delete/66166/useless Del: bad code -- http://master.php.net/note/delete/66166/bad+code Del: spam -- http://master.php.net/note/delete/66166/spam Del: non-english -- http://master.php.net/note/delete/66166/non-english Del: in docs -- http://master.php.net/note/delete/66166/in+docs Del: other reasons-- http://master.php.net/note/delete/66166 Reject -- http://master.php.net/note/reject/66166 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#111378) next »