Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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

Report this thread to moderator Post Follow-up to this message
Old Post
Sylvain
03-17-08 03:05 AM


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.

Report this thread to moderator Post Follow-up to this message
Old Post
Sylvain
03-17-08 03:05 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 11:51 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.