文件名称:CreateDiffPic:将两个文件的对比差异生成图片
文件大小:184KB
文件格式:ZIP
更新时间:2024-07-16 23:28:59
JavaScript
CreateDiffPic 实现方法:生成两个文件的对比网页,然后用PhantomJS将网页生成图片。详情请见example.php: <?php define("SITE_PATH", dirname(__FILE__)); $old_path = SITE_PATH."/log/old"; $new_path = SITE_PATH."/log/new"; $js_path = SITE_PATH."/diff/deal.js"; $request_url = "http://10.16.15.225/diff/index.php"; //根据自己的网络设置,即访问diff目录下的index.php文件 $img_path = SITE_PATH."/log/diff.png"; $command = "/usr/bin/ph
【文件预览】:
CreateDiffPic-master
----log()
--------old(6KB)
--------new(6KB)
--------diff.png(149KB)
----diff()
--------index.php(2KB)
--------deal.js(684B)
--------jsbeautify.js(18KB)
--------diffview.js(6KB)
--------dojo.js(140KB)
--------difflib.js(6KB)
--------diffview.css(986B)
----example.php(369B)
----README.md(752B)