What is filerpos, filelen and subfile
| From: | Ben Edwards | Date: | Sun, 21 Oct 2001 14:26:03 +0000 |
| Subject: | What is filerpos, filelen and subfile | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71736@lists.php.net to get a copy of this message | ||
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 * **************************************************************