今天用PHP解析xml时出现如下错误:php Fatal error: Class 'DOMDocument' not found。
环境:CentOS 5.6; PHP 5.3.5
解决方法:
#yum -y install php-dom #apachectl restart 或者 service httpd restart
#yum -y install php-dom
#apachectl restart 或者 service httpd restart