Categories
Snaps
Search
Register
Contact
API
CRC32
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); } ?>
Usage
crc32X('./file.avi);
Comments
Add your comment
Search
Login
Coder: vivei
View more snaps from vivei
View vivei's profile
Rate this snap
Rating:
0
/ 5 (
0
votes) 821 views
Custom class generator
Selected snaps:
None selected yet.
Hot PHP snaps
PHP image slideshow auto
PHP pagination class
Bootstrap PHP code
Clean URL
PHP ffmpeg Upload Script
Rijndael 256 bit encryption using mcrypt
generate a preview image from an FLV file on-the-fly, or to save
Median calculator
Partners
PHP Site
PHPSnips
Comments