Technical References - [calcfilecrc32]

calculates the CRC32 value of a given file

numero = 253
interpreted = N
texte = [CalcFileCRC32 file=...] Putting [CalcFileCRC32 file=...] in your template calculates the CRC32 value of a given file.

CRC32 is a 32-bit Cyclic Redundancy Check code, used mainly as an error detection method during data transmission. If the computed CRC bits are different from the original (transmitted) CRC bits, then there has been an error in the transmission. If they are identical, we can assume that no error occured (there is one chance in 4 billion that two different bit streams have the same CRC32). The idea is that the data bits are treated as a data polynomial and the CRC bits represent the remainder of the division of the data polynomial by a fixed, known polynomial (called the CRC polynomial).

Example:
[CalcFileCRC32 file=../header.inc]
Results: 4016676240l

From version 8.1, if you want to calculate the CRC32 of a string, you can use [CalcCRC32][string][/CalcCRC32]

Example:
[text]stringX=balh blah blah blah[/text][CalcCRC32][stringX][/CalcCRC32]
This returns 345965317 [CalcFileCRC32 file=...]

Putting [CalcFileCRC32 file=...] in your template calculates the CRC32 value of a given file.

CRC32 is a 32-bit Cyclic Redundancy Check code, used mainly as an error detection method during data transmission. If the computed CRC bits are different from the original (transmitted) CRC bits, then there has been an error in the transmission. If they are identical, we can assume that no error occured (there is one chance in 4 billion that two different bit streams have the same CRC32). The idea is that the data bits are treated as a data polynomial and the CRC bits represent the remainder of the division of the data polynomial by a fixed, known polynomial (called the CRC polynomial).



Example:
[CalcFileCRC32 file=../header.inc]

Results:
4016676240l

From version 8.1, if you want to calculate the CRC32 of a string, you can use
[CalcCRC32][string][/CalcCRC32]



Example:
[text]stringX=balh blah blah blah[/text]
[CalcCRC32][stringX][/CalcCRC32]

This returns 345965317

DOWNLOAD WEBDNA NOW!

Top Articles:

[biotype]

BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...

Download WebDNA Applications

WebDNA applications...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

WebDNA Modules

A list of the currently available modules...

WebDNA reference

...

WebDNA Libraries

A list of available libraries for WebDNA...

Related Readings:

[cookie]

Cookies are a great way to remember visitors...

[date]

Putting [date] in your template displays the current date as defined by the clock on your web server...

[appendfile]

Writes text to the end of an existing file...

[input]

[url]...

[formvariables]

Lists all the form variables and parameters passed to the current page...

[return]

Explicitly identify what text is returned from a function call...