02-15-2008, 11:24 PM
|
#14 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
Quote:
Originally Posted by xenon
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 that for my file name to hash up using md5() and then I used that to get the extension. :] But thanks anyway, I might just try it.
__________________
VillageIdiot can have my babbies ;d
|
|
|
|