note 30223 added to function.filetype
| From: | Arias at rack1 dot php dot net | Date: | Tue, 11 Mar 2003 13:40:52 +0000 |
| Subject: | note 30223 added to function.filetype | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45100@lists.php.net to get a copy of this message | ||
To show the file extension you can use this function:
function showExtension($file){
if(is_file($file)){
$fileInfo = pathinfo($file);
$extension=$fileInfo["extension"];
} else {
$extension="";
}
return $extension;
}
--
http://www.php.net/manual/en/function.filetype.php
http://master.php.net/manage/user-notes.php?action=edit+30223
http://master.php.net/manage/user-notes.php?action=delete+30223
http://master.php.net/manage/user-notes.php?action=reject+30223