|
Posted by NC on 01/02/08 23:23
On Jan 2, 1:18 pm, opensourcea...@gmail.com wrote:
>
> hash_file means something new in php5,
Er, no. Effective PHP 5.1.2, there is a built-in function
hash_file():
http://www.php.net/hash_file
> For now, the error that I get with the above code is just:
>
> PHP Fatal error: Cannot redeclare hash_file()
And you should, as you cannot define a function that already exists.
> Is there some way to rewrite the above code
Why bother? Just use the built-in hash_file() function. To see which
hashing algorithms are supported on your system, call hash_algos():
http://www.php.net/hash_algos
Cheers,
NC
Navigation:
[Reply to this message]
|