> Okay, i got the general idea, now it all comes down to the actual > writing. I'm making a function that compares two strings (the one in the > source i read used an exec() call, but i'd like to do it all in PHP) > per-line. This poses some difficulties. Here's the scenario:
Tavi Wiki just calls out to the diff command using exec(), which is a lazy way of doing it. The wiki at c2.com does this too. Not sure what mediawiki (Raditha's suggestion) does. If you want to implement your own version of diff in PHP, you can start at the explanation here: http://c2.com/cgi/wiki?DiffAlgorithm Also there is this: http://pear.php.net/package/Text_Diff --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php