On Thu, Nov 15, 2001 at 03:08:00PM -0500, Joao Prado Maia wrote :
>
> On Thu, 15 Nov 2001, Markus Fischer wrote:
>
> > $m45sum = md5_file($f);
> >
> ^^^^^^^^^^^^
> I guess you probably meant this:
>
> $md5sum = md5_file('filename');
No. I refered to Hartmut who suggested:
H> if given a string -> current behavior
H> if given a file handle resource -> read file and return sum
So
$f = fopen('filename'); $md5sum = md5($f); fclose($f);
actually would be what he wanted.
Looks .. odd to me ;)
- Markus
--
PHP Development 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]