Page 1 of 1

String Compare for wikipedia type edits!

Posted: Wed Oct 17, 2007 7:22 pm
by arpowers
Hey guys,

I am trying to create a better wiki type system for a project I'm working on...

In that I would like to hear your coding suggestions for comparing new text edits to the older ones using php. Ideally, this would be a line by line comparison highlighting the differences...

Thanks in advance..!
Andrew

Posted: Wed Oct 17, 2007 10:13 pm
by Ambush Commander
Check out DifferenceEngine.php for a PHP implementation of the word-by-word diffing algorithm. Or you can google around: keyword is "diff"

Posted: Wed Oct 17, 2007 11:22 pm
by arpowers
you are awesome ! I will check that out and report back for reference sake:):)