Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : xdiff Functions : xdiff_file_diff

xdiff_file_diff

Make unified diff of two files (PECL xdiff:0.2-1.4)
bool xdiff_file_diff ( string file1, string file2, string dest [, int context [, bool minimal]] )

Example 2631. xdiff_file_diff() example

The following code makes unified diff of two php files.

<?php
$old_version
= 'my_script.php';
$new_version = 'my_new_script.php';

xdiff_file_diff($old_version, $new_version, 'my_script.diff', 2);
?>

Change Language


Follow Navioo On Twitter
xdiff_file_diff_binary
xdiff_file_diff
xdiff_file_merge3
xdiff_file_patch_binary
xdiff_file_patch
xdiff_string_diff_binary
xdiff_string_diff
xdiff_string_merge3
xdiff_string_patch_binary
xdiff_string_patch
eXTReMe Tracker