Compares the size, date, or CRC32 value of two given file
numero = 217CRC32 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 a chance 1 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).
results: method=SizeSMALLER - file2 is smaller than file1LARGER - file2 is larger than file1SAME - file1 and file2 are the same size results: method=DateOLDER - file2 is older than file1NEWER - file2 is newer than file1SAME - file1 and file2 have the same create date results: method=CRC32DIFFERS - the files differ in contentSAME - the files have the same contentErrors:ERROR_FILE1 - 'file1' could not be found or openedERROR_FILE2 - 'file2' could not be found or openedERROR_BOTH - neither file could be found or opened Examples:[filecompare method=SIZE&file1=../create_tutorial.tpl&file2=../header.inc][filecompare method=DATE&file1=../create_tutorial.tpl&file2=../header.inc][filecompare method=CRC32&file1=../create_tutorial.tpl&file2=../header.inc][text]crc_value=[CalcFileCRC32 file=../header.inc][/text][filecompare method=CRC32&file1crc=[crc_value]&file2=../header.inc]Results:LARGEROLDERDIFFERSSAME [filecompare params...]
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 a chance 1 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).
[filecompare method=SIZE&file1=../create_tutorial.tpl&file2=../header.inc]
[filecompare method=DATE&file1=../create_tutorial.tpl&file2=../header.inc]
[filecompare method=CRC32&file1=../create_tutorial.tpl&file2=../header.inc]
[text]crc_value=[CalcFileCRC32 file=../header.inc][/text]
[filecompare method=CRC32&file1crc=[crc_value]&file2=../header.inc]
DOWNLOAD WEBDNA NOW!
Amazon Web Services (AWS) README for Machine Image ID...
F.A.QA compilation of some user's questions...
WebDNA ModulesA list of the currently available modules...
Tips and TricksA list of user-submitted tips ...
WebDNA LibrariesA list of available libraries for WebDNA...
Technical Change HistoryThis Technical Change History provides a reverse chronological list of WebDNA changes...
[session] is a new WebDNA feature that recognises a browser through its "fingerprint"...
[xmlnodes]The behavior of this context is to iterate the child XML nodes of a parent node...
[function]This context enables the WebDNA programmer to call a previously defined block of WebDNA code...
[if]This context displays HTML or executes WebDNA conditionally only if the expression is true...
[raw]Displays enclosed text without interpreting the [xxx] tags in any way...
[lastautonumber]displays the last auto-generated number...