You are here: Re: [PHP] comparing two texts « PHP « IT news, forums, messages
Re: [PHP] comparing two texts

Posted by "M. Sokolewicz" on 06/19/05 16:22

jenny mathew wrote:
>>Untested, very crude:
>>
>><?php
>>$maxlen = max(strlen($text1), strlen($text2));
>>for ($i = 0; $i < $maxlen; $i++){
>>if (@$text1[$i] == @$text2[$i]) echo @$text1[$i];
>>else @echo "<font color=red>$text1[$i]|$text2[$i]</font>";
>>}
>>?>
>
> donot you think you program will just bring the server to its foot ,if the
> text message encountered is very large of order of 40 KB or
> larger.is<http://larger.is>there any other efficient method.
>
40KB isn't large... now, when you're talking about hundreds of MBs of
text, then it gets large :) 40KB, with that method, is nothing...

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация