How to use DOMDocument under linux+apache+php ?
The IME is unavaiable in the Opera.
I moved the code written under WinXP+IIS+php to the Linux(FC4)+apache+php,
and tried to execute them, but the apache server prompts:
---------------------------------------------------------
Fatal error: Class 'DOMDocument' not found in /var/www/html/XXXXXXX.php on line 58
---------------------------------------------------------
Is the DOMDocument is only avaiable under the WinXP(uses MSXML?) if so, is there's a replacement of DOMDocument?
I tried to use phpinfo() to see if php really supports xml, it returns:
_________________________________________________________
xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.19
_________________________________________________________
Simplexml support enabled
Revision $Revision: 1.139.2.4 $
Schema support enabled
_________________________________________________________
libxml
libXML support active
libXML Version 2.6.19
libXML streams enabled
_________________________________________________________
How should I solve this problem?
I'll finalize this post immediately.
问题点数:50、回复次数:6Top
1 楼Raptor(猛禽)回复于 2005-12-29 17:28:44 得分 14
看上去都装了嘛。
不懂。Top
2 楼johnpanq(飞花逐月)回复于 2005-12-29 17:35:14 得分 16
DOM are part of PHP5 core, no need to install.
So I think your php version is less than PHP5, just upgrade it!Top
3 楼lexchou(龍子龍孫)(本人已死)(有事烧纸)回复于 2005-12-29 17:45:04 得分 0
Can you tell me how can I upgrade it without reinstall it?
But it's already php 5.0:
[root@localhost php-5.1.1]# rpm -qa | grep php
php-odbc-5.0.4-10
php-mcrypt-4.3.9-3.9.1
php-5.0.4-10
php-ldap-5.0.4-10
php-mysql-5.0.4-10
php-pear-5.0.4-10
Top
4 楼johnpanq(飞花逐月)回复于 2005-12-29 17:53:25 得分 20
Then write a test file test.php with the following content
<?php
$dom = new DOMDocument('1.0', 'iso-8859-1');
?>
if it runs without error,the problem was your program.
Top
5 楼lexchou(龍子龍孫)(本人已死)(有事烧纸)回复于 2005-12-29 17:56:33 得分 0
他就是提示DOMDocument没有这个类
代码是在Windows下写的,都调试成功了Top
6 楼lexchou(龍子龍孫)(本人已死)(有事烧纸)回复于 2005-12-30 14:48:41 得分 0
顶……难道这个问题很难么?
google搜索到的都是不着边际的东西Top
相关问题
- Linux Apache+PHP+MySQL的配置问题??
- 在LINUX下安装MYSQL+APACHE+PHP问题
- Linux上配置apache支持php?
- apache,tomcat,php,resin
- linux下的mysql,apache,php如何配置,使用?
- 成功地在linux/unix下安装apache+php+oracle的人请进!
- 急急急!!! 正版Red Hat 7.2 linux, apache, php 问题
- 如何卸载linux的dns,apache,mysql,php等
- linux+apache+php,设置虚拟主机不成功请教
- Linux下 apache 集成 php 出现的问题




