evaluate file type
| From: | Nautilis | Date: | Mon, 25 Feb 2002 09:22:21 +0000 |
| Subject: | evaluate file type | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-17258@lists.php.net to get a copy of this message | ||
Hi everybody
I am wondering if there is any way to evaluate which kind of file i have on
my server.
Explanation:
I have a website where i upload some files for my registered users. I upload
every file to a certain folder. Every user has his own folder so i upload
some files to some users and some other to other users. I create a list with
readdir so i can show a list of files that user can download.
What I am trying to do is to evaluate the extension of that file so i can
show an icon, at least for certain types, for example PDF, GIF, JPG. ZIP and
WORD documents, and a general icon for the rest of file extensions.
Anybody can point me into the right direction for evaluate this?
Thx alot in advance to anybody reading this post.
Nautilis