aniesh82 Posted June 23, 2007 Share Posted June 23, 2007 Hi, I have two binary file name bunary1 & binary2. I need to compare these two files and find following changed byte + location +old value +new value The files are opened in read binary mod and returns each byte. Can someone suggest any method to compare bytes? Thanks. Regards Aniesh Quote Link to comment https://forums.phpfreaks.com/topic/56830-compare-two-binary-files/ Share on other sites More sharing options...
aniesh82 Posted June 26, 2007 Author Share Posted June 26, 2007 I have created the script to read the content from array and convert into decimal. Now I have two files with decimal numbers Can someone help me now? Quote Link to comment https://forums.phpfreaks.com/topic/56830-compare-two-binary-files/#findComment-282853 Share on other sites More sharing options...
Zane Posted June 26, 2007 Share Posted June 26, 2007 check out bitwise operators http://us.php.net/manual/en/language.operators.bitwise.php I think the one your looking for is the Xor operator Quote Link to comment https://forums.phpfreaks.com/topic/56830-compare-two-binary-files/#findComment-282863 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.