02-15-2008, 07:34 PM
|
#13 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
|
If you want to get the file extension, assuming that your file extension sits at the end of the file name, you can use this function, instead of limiting the file extension to 3 characters (see .jpeg files, .ko files for example):
Code:
$extension = strrchr($file_name, '.');
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
|
|
|
|