phpFunction 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 higher) $ extend = PathInfo; $ extend = strtolower ($ extend ["extension"]; echo $ EXTEND;?>