Connecting Tech Pros Worldwide Forums | Help | Site Map

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

bissatch@yahoo.co.uk
Guest
 
Posts: n/a
#1: Jul 17 '05
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


bissatch@yahoo.co.uk
Guest
 
Posts: n/a
#2: Jul 17 '05

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


....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

Bzdziul
Guest
 
Posts: n/a
#3: Jul 17 '05

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


Uzytkownik <bissatch@yahoo.co.uk> napisal w wiadomosci
news:1118777824.837649.82300@f14g2000cwb.googlegro ups.com...[color=blue]
> 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?[/color]

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

Closed Thread