String Compare for wikipedia type edits!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
arpowers
Forum Commoner
Posts: 76
Joined: Sun Oct 14, 2007 10:05 pm
Location: san diego, ca

String Compare for wikipedia type edits!

Post 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
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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"
User avatar
arpowers
Forum Commoner
Posts: 76
Joined: Sun Oct 14, 2007 10:05 pm
Location: san diego, ca

Post by arpowers »

you are awesome ! I will check that out and report back for reference sake:):)
Post Reply