|
użytkowników online: 63
|
OPINIE UŻYTKOWNIKÓW
|
Uważam, że serwis jest najlepszy na świecie. Wykonany rzetelnie, a wszystkie skrypty sa dopracowane. Zamieszczony materiał godny mistrza. Jestem programistą od wielu lat i bez tego serwisu nie istnieje. Upraszacza życie każdemu programiście. Imponujący jest fakt, że do twórcy serwisu zawsze można się zwrócić z prośbą o pomoc i uzyskuje się ją w bardzo krótkim czasie. Najważniejsze w tym wszystkim jest to, że można korzystać z witryny za symboliczną opłatą.
Marcin Kowalski Multinet Polska
|
|
PODRĘCZNIK PHP 5.x, 4.x, 3.x - częściowo spolszczony / źródło: www.php.net
[Spis]
[A]
[B]
[C]
[D]
[E]
[F]
[G]
[H]
[I]
[J]
[K]
[L]
[M]
[N]
[O]
[P]
[Q]
[R]
[S]
[T]
[U]
[V]
[X]
[W]
[Z]
crc32 (PHP 4 >= 4.0.1, PHP 5) crc32 -- Calculates the crc32 polynomial of a string Descriptionint crc32 ( string str )
Generates the cyclic redundancy checksum polynomial of 32-bit
lengths of the str. This is usually used
to validate the integrity of data being transmitted.
Because PHP's integer type is signed, and many crc32 checksums will
result in negative integers, you need to use the "%u" formatter of
sprintf() or printf() to get
the string representation of the unsigned crc32 checksum.
This second example shows how to print a converted checksum with the
printf() function:
Przykład 1. Displaying a crc32 checksum |
<?php
$checksum = crc32("The quick brown fox jumped over the lazy dog.");
printf("%u\n", $checksum);
?>
|
|
See also md5() and sha1().
User Contributed Notesnathanzadoks at yahoo dot co dot uk
27-Jan-2006 07:54
If you want to make checksums use my checksum function
Usage: checksum($data);
<?php
function checksum($content){
return base64_encode(md5(crc32($content)));
}
?>
S
|