note 45658 added to function.md5-file
| From: | thecelestialcelebi at hotmail& dot com | Date: | Tue, 14 Sep 2004 14:02:06 +0000 |
| Subject: | note 45658 added to function.md5-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76666@lists.php.net to get a copy of this message | ||
<?php
if (!function_exists('md5_file'))
{
function md5_file($file)
{
if (!file_exists($file))
{
trigger_error('md5_file(): Unable to open file', E_USER_WARNING);
}
else
{
return md5(file_get_contents($sFilename));
}
}
}
?>
This is the right code ofcourse... :)
----
Manual Page -- http://www.php.net/manual/en/function.md5-file.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45658
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45658&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45658&report=yes
Search -- http://master.php.net/manage/user-notes.php