PHP
Function Extend ($ file_name) {$ RETVAL = ""; $ Pt = Strpos ($ file_name, "."); if ($ Pt) $ RETVAL = SUBSTR ($ file_name, $ Pt 1, Strlen ($ file_name) - $ PT); Return ($ RETVAL);} // Method 2 (PHP4.03 and later) $ extend = PathInfo ($ file_name); $ extend = Strtolower ($ extend "]); ECHO $ extension ;?>