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 / ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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). |
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|