xdiff_file_diff
Make unified diff of two files
Description
boolxdiff_file_diff
stringfile1
stringfile2
stringdest
intcontext
boolminimal
xdiff_file_diff makes unified diff of files
file1 and file2 and stores
result in file dest.
context indicated how many lines of context you
want to include in diff result. Set minimal to
&true; if you want to minimalize size of diff (can take a long time).
Resulting file is human-readable.
This function doesn't work well with binary files. To make diff of binary
files use xdiff_file_diff_binary.
&return.success;
xdiff_file_diff example
The following code makes unified diff of two php files.
]]>
See also xdiff_string_diff.