I have installed xampp 1.7.3 and the php version is PHP 5.3.1.When iam using the function domxml_open_file() ,it throwing an error Call to undefined function domxml_open_file().
How i can enable DOM in php.Thanks in advance.
I canot find 'extension=php_domxml.dll'
in php.ini file,
so i added extension=php_domxml.dll this in php.ini file
check phpinfo() if php was compiled with --with-libxml-dir
DOMXML is the old PHP4 XML extension and no longer bundled with PHP5. You have to get it from PECL:
Note that A DLL for this PECL extension is currently unavailable.
PHP5 features a new DOM extension, which (among others) should be available out of the box:
Have a look at some of my previous answers involving DOM usage and also see this article on DevZone for an overview of the available XML extensions in PHP5.