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? 6 2021
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()
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?
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.
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
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, thenew 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.
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 >extenden d. >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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: tim |
last post by:
I've been given the task of trying to determine if some Java source code
is the correct version of what is in production.
Previous people took the source code and compiled it and then compared
it to the class they extracted from the production ear file.
There were slight differences but they said they were 99% the same. I'm
not sure how they reached that conclusion.
My question is, is it possible that the production classes were compiled...
|
by: Dan Gass |
last post by:
The difflib.py module and the diff.py tools script in Python 2.4 alpha
3 now support generating side by side (with intra line differences) in
HTML format. I have found this useful for performing build release
comparisons (I use a script to generate a main page showing all the
files that were changed in a build with hyperlinks to side by side
differences for each of those files). I also find it useful for
generating HTML test reports to...
|
by: Arnold Peters |
last post by:
When I inspected my directories I found a lot of different xercesImpl.jar files
with different files and names. E.g.:
Are they all compatible?
How do I find out which version is a certain xercesImpl.jar.
Are the versions from different distributors/authors?
What are the differences ?
What about the accompanying jars like (dom3-)xml-apis.jar?
|
by: Nathan Rosaaen |
last post by:
I want to be able to easily see what changes were made from original
to updated sentences (words added/removed/changed). I'm not too concerned about speed, just looking for something. The compared text will be anywhere from a word or two to multiple paragraphs.
An example:
Original sentence:
The brown dog ran outside at night. During the day, the brown dog slept.
Updated sentence:
The big brown dog ran outside when dark. During...
|
by: Ray in HK |
last post by:
What are the differences between LOAD DATA INFILE and LOAD DATA LOCAL INFILE
?
I found some web hosting company do not allow using LOAD DATA INFILE but
allow LOAD DATA LOCAL INFILE. The reason is for the sake of security. What
does that mean ?
| |
by: Rob Panosh |
last post by:
Hello,
I am looking for a routine that would compare the following:
sTest1 = "This is a test"
sTest2 = "This is a long test"
and return the differences between the two:
long
|
by: Seguros Catatumbo |
last post by:
Hi, i have decent experience with asp 3.0 (classic), and downloaded web
developer express to see what's the fuzz over it. I have lots of
questions, mostly regarding the use of forms and database use.
1) Why should i use the asp:label, asp:textbox, asp:submit instead of
plain old html input type="...", form action="..."
2) What's up with all those javascript:__dopostback links when using
some controls? Does it mean text browsers and...
|
by: _mario.lat |
last post by:
hallo,
I have two text (configuration files) and I'd like to get the difference between these files.
I'd like something like "diff" in linux or differences in wiki.
how can I do?
thankyou in advance.
Mario.
|
by: blangela |
last post by:
I am teaching a C programming course to C++ programmers and want to
come up with list of _KEY_ differences between the two languages.
Below is a list I have come up with so far. Have I missed any?
Key Differences between ANSI C and C++
1. C is a procedural programming language (where as C++ is an Object
Oriented Programming language). This means that the C programming
language does not support classes and all functionality provided...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |