This functions will return the CRC32 of a file.
<? function crc32X($file) { # Get CRC32B Hash $x = hash_file("crc32b", $file); # Format Accordingly $x = sprintf("%08x", 0x100000000 + hexdec($x)); # Return Output return substr($x, 6, 2) . substr($x, 4, 2) . substr($x, 2, 2) . substr($x, 0, 2); } ?>
crc32X('./file.avi);
Comments
Add your comment