picking off file extentions in php
hi,
i have an intranet system written in php it is designed to read folders and display their contents and put a nice little icon at the side of the file for example a m$ word document would get a blue letter W at the side.
unfortunatly the way its written it only picks off a 3 letter extention so .html files dont display
is there a way to read the file name from the right upto the . (dot) and put it into a string?
so if i gave it a file name of blah.foobar it would pick off the extention of foobar
thanks
antken
|