need help in comparing two files and finding the difference in them

Hi guys,

i need a php code to compare two text files. File1 has some values in the default and the file2 is one to compare with the file1. If there are any differences in the file2 then i have to print it in the new pdf file as a report saying these are the differences in the file_name. Can any one please help me in sorting out this problem ?? really important as my work is all pending all because of this… please really urgent…

What have you tried? I’ve never tried to do this before but I’m wondering if you could simply read all lines into two arrays and compare the arrays (perhaps using array_diff())

Sponsor our Newsletter | Privacy Policy | Terms of Service