473,560 Members | 2,935 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem updating PHP 4.3.0 DEV to PHP 4.3.3

Hi!

I had Apache 2.0.47 and PHP 4.3.0 DEV running successfully on a W2k
Server. For some reason, I couldn't get PHP to read XML-Attributes
with the DOM XML -functions. So I thought, it would be time to update
PHP to a newer version.
So I simply replaces the old php-files with the new ones and of course
kept the php.ini. But now, PHP doesn't work anymore. As soon as I
request a page with php code, I get a "document contains no data"
error after a while. (Apache's error log looks like the excerpt at the
end of this message)

If I install PHP5, I can't even start Apache.

Does anyone have an idea, what may go wrong here?

Thanks in advance,

Tobias

[...]
[Wed Sep 24 20:46:56 2003] [debug] child.c(695): Child 3196: Worker
thread 248 starting.
[Wed Sep 24 20:46:56 2003] [debug] child.c(695): Child 3196: Worker
thread 249 starting.
[Wed Sep 24 20:47:24 2003] [notice] Parent: child process exited with
status 3221225477 -- Restarting.
[Wed Sep 24 20:47:25 2003] [notice] Parent: Created child process 3032
[Wed Sep 24 20:47:25 2003] [debug] mpm_winnt.c(505 ): Parent: Sent the
scoreboard to the child
[Wed Sep 24 20:47:25 2003] [notice] Child 3032: Child process is
running
[Wed Sep 24 20:47:25 2003] [info] Parent: Duplicating socket 220 and
sending it to child process 3032
[Wed Sep 24 20:47:25 2003] [debug] mpm_winnt.c(426 ): Child 3032:
Retrieved our scoreboard from the parent.
[Wed Sep 24 20:47:25 2003] [debug] mpm_winnt.c(623 ): Parent: Sent 1
listeners to child 3032
[Wed Sep 24 20:47:25 2003] [debug] mpm_winnt.c(582 ): Child 3032:
retrieved 1 listeners from parent
[Wed Sep 24 20:47:25 2003] [notice] Child 3032: Acquired the start
mutex.
[Wed Sep 24 20:47:25 2003] [notice] Child 3032: Starting 250 worker
threads.
[Wed Sep 24 20:47:25 2003] [debug] child.c(695): Child 3032: Worker
thread 0 starting.
[Wed Sep 24 20:47:25 2003] [debug] child.c(695): Child 3032: Worker
thread 1 starting.
[...]
Jul 17 '05 #1
2 12060
Hi again,

I've found the problem. There was a dll from an old backup still
somwhere in the search path.

But now I have a new problem. When I use the domxml-functions to
parse a xml document with ISO-8859-1 encoding, and simply print out
the parsed texts with echo, then all the umlauts get messed
(ö -> ö and so on). The html is set to charset=iso-8859-1, the xml
encoding is ISO-8859-1. So why do my umlauts become 2-byte codes in
output, that can't even convert with htmlentities()?

bye,

Tobias

Jul 17 '05 #2
I had a similar problem a few months back, and when I queried it with PHP
support they told me that while the default character set for PHP is
ISO-8859-1 the character set used by the DOM XML functions is UTF-8. In
order to correctly process accented characters this is what you do:-

1) Use the mb_convert-encoding() function along with the
$doc->create_text_no de() function to convert from ISO-8859-1 to UTF-8, as
in:
$value =
$xml_doc->create_text_no de(mb_convert_e ncoding($fieldv alue,'UTF-8','ISO-8859
-1'));

2) On the $xml_doc->dump_mem() command change the encoding back to
ISO-8859-1 as in:
$xml_string = $xml_doc->dump_mem(true, 'ISO-8859-1');

I hope this helps.

Tony Marston
http://www.tonymarston.net/

"Tobias Grimm" <to**********@g mx.de> wrote in message
news:bk******** *****@news.t-online.com...
Hi again,

I've found the problem. There was a dll from an old backup still
somwhere in the search path.

But now I have a new problem. When I use the domxml-functions to
parse a xml document with ISO-8859-1 encoding, and simply print out
the parsed texts with echo, then all the umlauts get messed
(ö -> ö and so on). The html is set to charset=iso-8859-1, the xml
encoding is ISO-8859-1. So why do my umlauts become 2-byte codes in
output, that can't even convert with htmlentities()?

bye,

Tobias

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
5758
by: Hennie de Nooijer | last post by:
Hi, Currently we're a building a metadatadriven datawarehouse in SQL Server 2000. We're investigating the possibility of the updating tables with enormeous number of updates and insert and the use of checkpoints (for simple recovery and Backup Log for full recovery). On several website people speak about full transaction log and the pace...
0
1526
by: Hardy | last post by:
A strange problem. the NSE index had been updated automatically according to the configuration but it stoped to autoupdate from months ago. the configuration is still auto.. so manually updating the NSE index was used till recently. after upgrading to DB2 UDB V8.1 FP6 and NSE FP4, even the manually updating went to error: SQL0444N ...
2
19510
by: Ray | last post by:
I have a list of about 20,000 rows that I am updating. I loop through each row in my program and basically do the following (1) select * from TABLE where SID= for update /*lock the row*/ (2) Update TABLE set ACCESS_DATE=current date where SID= (3) Do not commit (4) Next row After each SID in the list is finished being updated I want to...
1
2099
by: Steven Blair | last post by:
Hi, Here is a short decsription of my problem. I have written a dll for Database accessing. I have one method which can return a Dataset and another method which takes a Dataset and upates a Database. (Disconnected Datasets). The problem I have is a new SqlAdapter is required before updating the Database: Therefore, to allow the update...
1
1655
by: delta7 | last post by:
Hi, I'm new to C sharp and currently writing a small program that uses an Access 2003 database. I am currently having a problem when updating a row that includes numeric data. When updating just the text fields in the row everything works fine with the following command:
1
1228
by: Mark | last post by:
I'm having a problem updating recordsin an Access DB table. I can update other tables in this db with no problem, and I can dreate new record in all of the tables (including this one.)> But I can't seem to update it. I keep getting this error: System.Data.OleDb.OleDbException: Data type mismatch in criteria expression from this line:
5
2017
by: junglist | last post by:
Hi guys, I've been trying to implement an editable datagrid and i have been succesful up to the point where i can update my datagrid row by row. However what used to happen was that once i updated one row, all of them were updated so i immediatelly figured out that i have to include the id of every entry in the update statement. This is where...
0
1052
by: Mike P | last post by:
I'm updating a datagrid which works fine, but after updating the datagrid does not return to 'view' status, remaining in 'edit' status. Has anybody else had this problem? Thanks, Mike
2
4534
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was set to...it is set to false. Can someone show me what I am doing wrong and tell me the correct way? Thank you. In the page load event, I am...
11
6050
by: SAL | last post by:
Hello, I have a Gridview control (.net 2.0) that I'm having trouble getting the Update button to fire any kind of event or preforming the update. The datatable is based on a join so I don't know if that's what's causing the behavior or not. It seems like the Update button should at least do something. When the Edit button is clicked, the...
0
7635
marktang
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...
0
7845
Oralloy
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. ...
0
8068
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7600
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...
0
6193
agi2029
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...
1
5459
isladogs
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...
0
3589
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1171
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.