note 9252 added to filetype
| From: | info at jfcom dot de | Date: | Tue, 24 Oct 2000 20:47:47 +0000 |
| Subject: | note 9252 added to filetype | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6933@lists.php.net to get a copy of this message | ||
to get the ending of a file try this (PHP 4.02):
$ext=$HTTP_POST_FILES['file']['name'];
$ext=explode(".",$ext);
you'll get the ending without the dot (i.e.: pdf)
http://www.php.net/manual/function.filetype.php