Code Comments
Programming Forum and web based access to our favorite programming groups.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).
Post Follow-up to this messageSylvain 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.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.