HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Compare two batches of text and return difference
Post new topic   Reply to topic    HTML Help Forum Index -> PHP
View previous topic :: View next topic  
Author Message
motherbee



Joined: 23 Oct 2007
Posts: 3

PostPosted: Mon Oct 29, 2007 2:02 am     Compare two batches of text and return difference Reply with quote

Hi, I'm trying to figure out a way to compare two versions of the same text file from a database and to highlight the changes when viewing the text? Can anyone help me with this?
kanenas



Joined: 14 Dec 2004
Posts: 191

PostPosted: Tue Dec 04, 2007 8:17 pm     Reply with quote

I can possibly get you started in the right direction, but don't have the time to work out the details. One option is to pick out some open source app that does what you're trying to do and see how it does it (Wikipedia's MediaWiki supports colored diffs when comparing historical versions of a page). The other way I can think of off hand is to use system to call diff, then parse the output. There may be a command line tool or PHP library to help parse diff's output.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial