Location: PHPKode > scripts > Simple Compare > index.php
<?php
require_once 'vbinary.php';

    if (isset($_FILES["file1"]["tmp_name"])){

        $dif=new vbinary(array($_FILES["file1"]["tmp_name"],$_FILES["file2"]["tmp_name"]));
            $dif->compare();
            echo "<h3>".$dif->result[0]." similar Fragments found</h3>";

    }









?>
<html>
    <head> </head>


    <body>

            <h3> Check diff</h3>

            <form action="index.php" method="post" enctype="multipart/form-data">
            <h3> file 1 </h3>
            <input type="file" name="file1"/>
                <h3> file 2 </h3>
              <input type="file" name="file2"/>

              <input type="submit" value="check" />


        </form>

    </body>



</html>
Return current item: Simple Compare