Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Raffaele Ricatto  >  PHP diff tool  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: php file
Class: PHP diff tool
Compare two files and show differences in Web page
Author: By
Last change:
Date: 2013-09-08 23:09
Size: 671 bytes
 

Contents

Class file image Download
<?php

$INDEX_PHP
"example.php";

include_once(
"class_textEditor.php");
include_once(
"class_diffTool.php");

$res '';

$res .= "
        <!DOCTYPE html>
        <head>
            <meta charset=\"utf-8\">
            <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">
             <link  href=\"style.css\" rel=\"stylesheet\" type=\"text/css\" />
            <script src=\"//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js\" ></script>
            <title>Diff Tool</title>
        </head>
        <body>"
;

        
$tool = new diffTool;
        
$res .= $tool->renderDiffTool("file1.txt","file2.txt");

$res .= "</body>";


echo 
$res;
?>