Дана Wednesday 18 November 2009 19:59:58 Aryeh Gregor написа:
wdiff isn't reliably available -- it's not
installed by default on all
(any?) Linux distros, and it's very unlikely to be installed on
non-Linux servers. Moreover, even where it's installed, shared hosts
often don't give PHP scripts the right to execute external programs --
that breaks out of PHP's sandboxes, and many shared hosts rely on
those instead of Unix permissions.
From what I recall I've seen while browsing through its source, wdiff just
transforms every space in a file into a newline, then runs diff on it. This
could be simulated in PHP too.