Re: [PHP] What is filerpos, filelen and subfile
Forget this one, i'me being stupid. At 04:26 P 21/10/01, Ben Edwards wrote: >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 Edwards+352 091 429995 * * Homepagehttp://www.gifford.co.uk/~bedwards * * i-Contact Progressive Videohttp://www.videonetwork.org * * Smashing the Corporate image http://www.subvertise.org * * Bristol's radical newshttp://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]
[PHP] What is filerpos, filelen and subfile
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 * * Homepagehttp://www.gifford.co.uk/~bedwards * * i-Contact Progressive Videohttp://www.videonetwork.org * * Smashing the Corporate image http://www.subvertise.org * * Bristol's radical newshttp://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]