note 66166 deleted from function.move-uploaded-file by bjori

From: Date: Tue, 16 May 2006 15:49:37 +0000
Subject: note 66166 deleted from function.move-uploaded-file by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-111387@lists.php.net to get a copy of this message
Note Submitter: ktx at inmail dot sk Reason: bad code ---- 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 ) ); }

« previous php.notes (#111387) next »