I'm working on a collection of functions for handling text documents; when a Document is added, its text is broken into paragraphs, and each paragraph is saved to the database as a separate record. The problem is editing the document, because I only want to update those paragraphs that have been changed (like CVS). I've been trying to find information on how some of the versioning software out there does it, but haven't found anything really helpful. As far as I can see, the troublesome points are when a new paragraph is added, or an old paragraph is deleted. How can you tell the difference between this, and simply a heavily edited paragraph?
In unix/linux, you can use diff to tell you the difference between two files. Why not integrate CVS in your php application? Just use PHP as a "wrapper" for CVS :)
-- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php