How to detect the file extension in PHP?
Read the given tutorial to detect the file extension in PHP.
Here is the code for find Ext. of a file. <?php $filename = "filename.ext"; $a = explode('.',$filename); $c = count($a); $c = $c - 1; $ext = $a[$c]; echo $ext; ?> Regards, Kalpesh Shah.