note 34252 added to function.split

From: Date: Sat, 19 Jul 2003 21:19:48 +0000
Subject: note 34252 added to function.split
Groups: php.notes 
Request: Send a blank email to php-notes+get-52398@lists.php.net to get a copy of this message
I have a <input type="file"> field and the user would upload a file. I wanted the file name so I did this (complete file path is set via method="GET" in my form and the file fields name is "Bio") $bio = $_GET["Bio"]; $bio = split("\\\\",$bio); echo $bio[count($bio)-1]; // get the file name and the output was in fact: file.htm Just thought I'd like to share this with the world Rob ---- Manual Page -- http://www.php.net/manual/en/function.split.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34252 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34252&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34252&report=yes

« previous php.notes (#52398) next »