Diff for phpPlatonLib/Platon/Platon.php between version 1.24 and 1.25
| version 1.24, 2004/12/12 21:41:05 |
version 1.25, 2004/12/12 21:44:55 |
|
|
| * @access public |
* @access public |
| */ |
*/ |
| |
|
| /* $Platon: phpPlatonLib/Platon/Platon.php,v 1.23 2004/04/11 16:19:46 nepto Exp $ */ |
/* $Platon: phpPlatonLib/Platon/Platon.php,v 1.24 2004/12/12 21:41:05 nepto Exp $ */ |
| |
|
| class Platon |
class Platon |
| { |
{ |
|
|
| * @param string $file filename |
* @param string $file filename |
| * @return string MD5sum of file or false if file not found |
* @return string MD5sum of file or false if file not found |
| */ |
*/ |
| function md5sum($file) |
function md5sum($file) /* {{{ */ |
| { |
{ |
| if (($fhandle = @fopen($file, 'r')) === false) { |
if (($fhandle = @fopen($file, 'r')) === false) { |
| return false; |
return false; |
|
|
| } |
} |
| @fclose($fhandle); |
@fclose($fhandle); |
| return md5($data); |
return md5($data); |
| } |
} /* }}} */ |
| |
|
| /** |
/** |
| * Escapes e-mail address. |
* Escapes e-mail address. |
Platon Group <platon@platon.org> http://platon.org/
|
|