how to compare 2 text files by using php code
Hi all,
how to compare 2 text files by using php code and return the difference result?? is it regexp can help to do the comparison? finally would anyone can provide me some references? or any suggestion Many thx !!! Antony |
BTW is this a homework assignment?
|
sorry what is BTW!!
I am not familiar with php !! I am building a web application !! I just want to know any reference or example by using regular expression or other kind of method to compare to text file. and then highlight it and output it in form of HTML!! |
hi all,
I find other solution to solve my problem. and would like to share my method to you. I am now using the linux command "diff" to compare 2 file and parse the output file and then generate the HTML code. example : ==================== diff a.txt b.txt > result.txt :p |
All times are GMT -5. The time now is 04:50 PM. |