note 38267 added to function.move-uploaded-file

From: Date: Sun, 14 Dec 2003 20:49:03 +0000
Subject: note 38267 added to function.move-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-61948@lists.php.net to get a copy of this message
HOWTO get simply the true extension of a file ( the string after the last '.' and rebuild a new file name with the same extension $fich = $_FILES['fichier']['name']; $compo = split("[.]", $fich); if($compo != false ) $nvFich = $fichierTemp.".".end($compo); else echo " what's kind of file could this be :s "; ---- Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38267 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38267&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38267&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61948) next »