note 39848 added to function.move-uploaded-file
| From: | Alex at rn2 dot php dot net | Date: | Thu, 12 Feb 2004 20:34:51 +0000 |
| Subject: | note 39848 added to function.move-uploaded-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-65062@lists.php.net to get a copy of this message | ||
Alternative method of getting the file extension.
You can kill two birds with one stone and get the file name and extension at the same time by using
list and split:
<? list($name, $extension) = split("\.", $filename); ?>
----
Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39848
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39848&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39848&report=yes
Search -- http://master.php.net/manage/user-notes.php