Jump to content

Compare and print altered text


Akira

Recommended Posts

Hey,

 

I am building some sort of wiki page which has a lot of text on each page.

 

Now multiple people are editing this wiki page, and if person A is editing I would like to send person B and C an email with the part of the text which has been edited.

 

Any idea's on how to work this out?

 

Regards, Maarten

 

Link to comment
https://forums.phpfreaks.com/topic/202266-compare-and-print-altered-text/
Share on other sites

Could do a script comparing the the old one before it was updated and the new one. A scan of text of the old copy comparing to the new one noting the additions/changes at each point... hmmm theoretically this seems simple but the more I think of how to accomplish this after it finds the first change and continues has me baffled... maybe someone else has an idea

 

 

EDIT:  Here's a class I came across that compares lines, not sure how well it'll work but maybe you can modify it for your needs.

 

http://www.weberdev.com/get_example-4323.html

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.