Hi,

Im looking for a php script which will run on windows/*nix platforms and can compare 2 files.

Ideally I would like it to show the 2 original files side by side with the changes highlighted (new lines, changed lines etc..)

I want to use it on php, html, css, javascript files.

Anyone know of anything like this?

Cheers

    You're basically looking for a PHP implementation of diff, then? I do know of a couple off the bat; they're both part of larger systems, but if they're written well enough it should be a simple matter to snap the diff component out and get something that just compares pairs of text files. The systems are Mediawiki and dokuwiki.

      There is also a win32 version of diff if you need it...

        Write a Reply...