This is really strange, found this function someware (cant remember where) 
and it works.  What I cant find is any reference to filerpos, filelen or 
subfile on the php website!  They are not functions I define in any inc 
files. Anyone know where these are documented?

Ben

function get_file_ext($file) {

   $i = filerpos($file,".");
   if (!$i) { return ""; }

   $l = filelen($file) - $i;
   $ext = subfile($file,$i+1,$l);

   return filetolower( $ext );
}

**************************************************************
* Ben Edwards                                +352 091 429995 *
* Homepage                http://www.gifford.co.uk/~bedwards *
* i-Contact Progressive Video    http://www.videonetwork.org *
* Smashing the Corporate image     http://www.subvertise.org *
* Bristol's radical news            http://www.bristle.co.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8   *
**************************************************************


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to