473,396 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 12039
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_node() function to convert from ISO-8859-1 to UTF-8, as
in:
$value =
$xml_doc->create_text_node(mb_convert_encoding($fieldvalue, '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**********@gmx.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
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...
0
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...
2
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)...
1
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...
1
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...
1
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...
5
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...
0
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
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...
11
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...
0
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...
0
tracyyun
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...
0
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,...

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.