note 75884 modified in function.crc32 by danbrown
| From: | danbrown@php.net | Date: | Thu, 06 Oct 2011 21:30:46 +0000 |
| Subject: | note 75884 modified in function.crc32 by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183686@lists.php.net to get a copy of this message | ||
I see a lot of function for crc32_file, but for php version >= 5.1.2 don't forget you can
use this :
<?php
function crc32_file($filename)
{
return hash_file ('CRC32', $filename , FALSE );
}
?>
Using crc32(file_get_contents($filename)) will use too many memory on big file so don't use it.
--was--
I see a lot of function for crc32_file, but for php version >= 5.1.2 don't forget you can
use this :
function crc32_file($filename)
{
return hash_file ('CRC32', $filename , FALSE );
}
Using crc32(file_get_contents($filename)) will use too many memory on big file so don't use it.
http://php.net/manual/en/function.crc32.php