DOM are part of PHP5 core, no need to install.
So I think your php version is less than PHP5, just upgrade it!

解决方案 »

  1.   

    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
      

  2.   

    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.
      

  3.   

    他就是提示DOMDocument没有这个类代码是在Windows下写的,都调试成功了
      

  4.   

    顶……难道这个问题很难么?google搜索到的都是不着边际的东西