Track changes to a document stored in an SQL database

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
Cogs
Forum Newbie
Posts: 17
Joined: Thu Mar 27, 2003 4:57 pm

Track changes to a document stored in an SQL database

Post by Cogs »

Hi,

I while ago I wrote a PHP class that returned the diff of two text documents. It had fundamental flaws so it was dropped. I'm in need of some kind of php diff function for an project that has wiki-like functionality.

What would be the best method for determining the difference between new (submitted) and old (currently stored) versions so that it stores only the changes and provides the ability to revert to an older state?
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Take a look into CVS.
Post Reply