我想比较两个上传的文件并显示两个文件中相同的字符串,告知百分比,但我不知道如何处理它。非常感谢任何帮助。下面是我的上传表格。
<p>Choose files to be compared<p>
<hr />
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
<!--APC hidden field-->
<input type="hidden" name="APC_UPLOAD_PROGRESS" id="progress_key" value="<?php echo $up_id; ?>"/>
<!---->
<input name="file" type="file" id="file" size="30"/>
<!--Include the iframe-->
<br />
<iframe id="upload_frame" name="upload_frame" frameborder="0" border="0" src="" scrolling="no" scrollbar="no" > </iframe>
<br />
<!---->
<!--APC hidden field-->
<input type="hidden" name="APC_UPLOAD_PROGRESS" id="progress_key1" value="<?php echo $up_id; ?>"/>
<!---->
<input name="file1" type="file" id="file1" size="30"/>
<!--Include the iframe-->
<br />
<iframe id="upload_frame" name="upload_frame" frameborder="0" border="0" src="" scrolling="no" scrollbar="no" > </iframe>
<br />
<!---->
<input name="Submit" type="submit" id="uploadFilesButton" style="width:250px; height:35px; background-color: #003333; color: #ffffff; border-radius: 10px;" value="PlagCheck" />
</form>