Reply to Re: differences of two files?

Your name:

Reply:


Posted by Stefan Schwδrzler on 09/11/06 19:07

Chung Leong wrote:
> Stefan SchwΓ€rzler wrote:
>> Chung Leong wrote:
>>> Stefan SchwΓ€rzler wrote:
>>>> ZeldorBlat wrote:
>>>>> Stefan SchwΓ€rzler wrote:
>>>>>> hi ng,
>>>>>> there is an html-file on a webserver, i.e. web34.htm
>>>>>> every day, the file will be updated and extended.
>>>>>> i'm looking for php-code, that show me the difference or better, the new
>>>>>> text between the old and the updated file.
>>>>>> a line to line comparision is not possible, because the file will bei
>>>>>> extendend.
>>>>>> any suggestions?
>>>>> You're probably much better off using the "diff" program rather than
>>>>> looking for PHP code to do it. If you really need to do something else
>>>>> with it in PHP you could always call diff using exec() or passthru()
>>>>>
>>>> diff is not possible, because the server do not not allow to execute
>>>> unix commands.
>>>>
>>>> any further suggestions?
>>> See http://pear.php.net/package/Text_Diff. A pure PHP solution.
>>>
>> but i can't install any package on the server.
>> furthermore i wan't not look for the differences between two files,
>> rather the updated text in an htm file
>
> Just grab the PHP classes from the package. Don't tell me you can't
> upload PHP files to the server either.
>
it work's, but it shows only the diff's in the same line.
i wan't to see the differences in a file, which'll be extended.

[Back to original 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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация