Forum Moderators: coopster
$savedfile = "ITMS_PTWL.html";
$myFile = "ITMS_PTWL_new.html";
$crc1 = strtoupper(dechex(crc32(file_get_contents($savedfile))));
$crc2 = strtoupper(dechex(crc32(file_get_contents($myFile))));
if ($crc1!=$crc2) {
// files not the same so email it
//and overwrite the old file
copy($myFile, $savedfile);
//then email
}