English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How to compare two HTML files using PHP scripts?

2006-07-31 21:41:01 · 2 answers · asked by gansatanswers 3 in Computers & Internet Software

i need to find out the differences word by word and has to highlight the differences.

2006-08-01 00:29:50 · update #1

2 answers

Over 350 File Manipulation scripts here, you can try the link:

http://www.bigresource.com/scripts/PHP/File_Manipulation.html

2006-08-02 03:22:35 · answer #1 · answered by web_ambition 1 · 0 0

It depends on what kind of result u want.

If u just want to check the equality of the 2 given files you can use sha1($file_data_1) , sha1($file_data2) and then check if they both match!

If you want to see the difference between the two files (difference in lines/characters) then u have to re-code the `unix` utility `diff`

2006-08-01 05:29:11 · answer #2 · answered by Naresh 2 · 0 0

fedest.com, questions and answers