Call to undefined function: xml_parser_create()
I have downloaded and installed all of the required libraries, etc, for Mandrake 10.1. Whenever I try to connect to the site /netmrg, I get the above error, and when I run php index.php, I also get the error. I don't get errors anywhere else. The version of libxml2 is libxml2-2.6.13-1mdk, and php is PHP 4.3.8. Can anyone help?
The complete error is
Fatal error Call to undefined function xml_parser_create() in /usr/local/var/www/netmrg/lib/xml_to_array.php on line 81
Does Mandrake have some sort of php-xml package available?
Yes it does! So I installed it, and a couple of other xml related stuff....and still the same error.
You will probably have to restart httpd for php to reload its modules. If this doesn't help, you will have to find and edit your [b8555d92f97]php.ini[/b8555d92f97] to add something similar to this (and restart httpd).
Although, I'm not sure what the module name is; it's compiled into Red Hat's default php package. Let us know if you continue to have problems.
I found that php reads the contents of /etc/php.d for additional ini's...like xml, mysql, etc. There is also a directory called /etc/php that should contain the included ini files to be read, but it doesn't get read. I simlinked the 52_xml.ini found in the /etc/php/ to /etc/php.d/ restarted http and now it works. Thanks for your help.
This might be a bug with Mandrake 10.1.