Reply to Re: hello--please help function hash_file ($strFilename) is now broken in php5

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация