+ 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??
1 ответ
+ 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; 
?>



