With the next three lines of php code you will be able to get a file extension.
1 2 3 4 5 6 7 8 9 |
<?php $file = "somefile.gif"; $ext = end(explode('.', $file)); print "Your file extension is $ext"; ?> |
1 2 |
<span style="color: #000088;"> </span> |