473,473 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

phpinfo() tells me that XML DOM is enabled but this appears to not be the case

Hi,

I have just recently installed Apache2 and PHP5 on my computer and when
I do a phpinfo(), it informs me that XML DOM is enabled. Originally I
though that you needed to install additional modules but assumed that
with PHP5, you dont.

When I try to do a simple:

$xml_doc = domxml_open_file("../xml/menu.xml");

.... it fails. Unfortunetely, I am not recieving error messages with
apache/php (see my other post -
http://groups.google.co.uk/group/com...d509d1e9e3c514)
so it just simply cuts of where the error appears and leaves the rest
of the page blank.

Do I need to install additional server software for XML DOM?

Cheers

Burnsy

Jul 17 '05 #1
2 4089
....Ive now got error messages displaying and the following error is
given:

Fatal error: Call to undefined function domxml_open_file() in
C:\Program Files\Apache Group\Apache2\htdocs\csp\home\index.php on line
31

Any ideas?

Cheers

Burnsy

Jul 17 '05 #2
Uzytkownik <bi******@yahoo.co.uk> napisal w wiadomosci
news:11*********************@f14g2000cwb.googlegro ups.com...
Fatal error: Call to undefined function domxml_open_file() in
C:\Program Files\Apache Group\Apache2\htdocs\csp\home\index.php on line
Any ideas?


Manual says:
Note:
This extension has been removed as of PHP 5 and moved to the » PECL
repository.

Note:
This extension is no longer marked experimental. It will, however, never be
released with PHP 5, and will only be distributed with PHP 4. If you need
DOM XML support with PHP 5 you can use the DOM extension. This domxml
extension is not compatible with the DOM extension.

So you have to rewrite your scripts using DOM extension. They're quite
simillar, so it's not a big deal

--
feel free to correct my english

Jul 17 '05 #3

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

Similar topics

3
by: Shawn Wilson | last post by:
Hi, My host keeps messing things up and not telling me. I am trying to write a cron job that will test to make sure the "unusual" functions I use work and, if not, email me. I want it to send...
4
by: lawrence | last post by:
I wanted to use the AddType directive in an .htaccess file. So I used phpinfo() to get the path info for PHP. I found this line: PATH /bin:/usr/bin So I tried this, but it did not work:...
10
by: Patrick | last post by:
Hi I am a newbie and was just getting started working on a guestbook tutorial when I got an error message upon running my PHP code: Fatal error: Call to undefined function mysql_connect() in...
2
by: John Drako | last post by:
I just updated my server to apache 1.3.33 and php 5.0.3 from apache 1.3.31 and php 4.3.9. It's running RedHat and MySQL 4.0.20. All the code that I created myself in PHP is working as it should...
10
by: lorenzdominic_ | last post by:
Hi I am running Php5.0 on Windows XP. When I run phpinfo script it tells me that the configuration file php.ini is located in C:\Windows. This seems odd as I have put the PATH to php as D:\php...
1
by: lwoods | last post by:
Sorry for previous email...hit the wrong key! Original Email: I ran the following code: <?php $a=get_defined_constants(); foreach($a as $key=>$value){ echo "$key = $value<br/>"; }
0
by: ipy2006 | last post by:
I installed Apache 2.2.3 + PHP 5.2.0 binaries on my Windows box successfully. Then I downloaded dbg-2.13.1 and unzip the package. I created a folder called "ext" in C:\Program Files\PHP folder. I...
1
by: Randell D. | last post by:
Folks, I consider myself well versed with Apache 1.3 and PHP4 - I found drupal and wanted to try it out - I had problems getting it working with Apache2/PHP5/MySQL5 so I downgraded... Note: I...
7
by: eholz1 | last post by:
Hello All, I have reviewed various posts in regard to Oracle and PHP. I am running Apache 2.0.59, on Windows XP, with PHP 5.2. I would like to connect using PHP to a remote oracle db (ver. 7)...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
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...
1
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
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,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.