Fail to use DomDocument on linux

This is a discussion on Fail to use DomDocument on linux within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi, I'm having a problem to instantiate a 'DomDocument' class with PHP 5.2.4 running on Fedora 7 / ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-17-2008
Sylvain
 
Posts: n/a
Default Fail to use DomDocument on linux

Hi,

I'm having a problem to instantiate a 'DomDocument' class
with PHP 5.2.4 running on Fedora 7 / Apache 2.2.6
the "new DomDocument;" statement gives:
"Fatal error: Class 'DomDocument' not found ".

the same script runs fine on windows with Apache 2.2.4, PHP 5.2.3

the issue so comes from the install of PHP and its support of the
DomXxxx classes. but the doc (PHP website) indicates that they
are always present under PHP 5.x and simply use the libxml library.
I do have libxml2.so.2.6.31 present in my system, so ?

thanks for any help regarding the way to use that class under linux.

Sylvain.

--
(similar question posted on alt.fr.comp.lang.php,
no fu2 since languages are different).
Reply With Quote
  #2 (permalink)  
Old 03-17-2008
Sylvain
 
Posts: n/a
Default Re: Fail to use DomDocument on linux

Sylvain wrote on 17/03/2008 03:04:
>
> I'm having a problem to instantiate a 'DomDocument' class
> with PHP 5.2.4 running on Fedora 7 / Apache 2.2.6
> the "new DomDocument;" statement gives:
> "Fatal error: Class 'DomDocument' not found ".


oups! 'php-xml' is not installed in default config.
"yum install php-xml" solves the issue.

Sylvain.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:08 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0