public static function WriteFileIfDifferent($file, &$content)
    {
        $actual_file_content = "";

        if(file_exists($file))
            $actual_file_content = file_get_contents($file);

        if(crc32($actual_file_content) != crc32($content))
        {
            file_put_contents($file, $content);

            return true;
        }

        print false;
    }