Getting file icons for directory list
Posted: Fri Oct 29, 2004 4:51 pm
Hi, I am working on a script in PHP that its main purpose is to show all files in a directory similar to the way apache directories look.
I have everything done except one thing that I can find out, how to get the icons that appear at the left for each file on the directory list.
I am assuming the script looks at the file extensions but would I then have to include with the script every icons to any file and a rather long array telling what icons should go with files?
I know some webservers already have the icons installed /icons/ but my problem is associating them with the file types..
Any help would be appreciate
Thanks
I have everything done except one thing that I can find out, how to get the icons that appear at the left for each file on the directory list.
I am assuming the script looks at the file extensions but would I then have to include with the script every icons to any file and a rather long array telling what icons should go with files?
I know some webservers already have the icons installed /icons/ but my problem is associating them with the file types..
Any help would be appreciate
Thanks