+ 2

File comparison

I have a php project for uploading files. If I upload a file it should compare with the uploaded file and should tell matching percentage.. Is there any php code available for that??

17th Oct 2018, 2:23 PM
Jenitha D
Jenitha D - avatar
1 Answer
+ 3
You can use this code to compare two filenames. I've no Idea to compare the file contents too. <?php $var_1 = 'ab.txt'; $var_2 = 'ba.txt'; similar_text($var_1, $var_2, $percent); echo $percent; ?>
23rd Oct 2018, 6:32 AM
Googel
Googel - avatar