Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I try to run the command simplexml_load_string() in my php file i keep getting the error:
Fatal error: Call to undefined function: simplexml_load_string() in <file> - on line <line>
I checked phpinfo() and it doesn't seem to be installed. But I am using PHP 5 and as I've heard this is installed by default. When I compiled the PHP I did not purposely exclude simplexml.
Distribution: Mac OS X, Centos, OpenSuSE, Redhat, FreeBSD.
Posts: 26
Rep:
Hi, I have the same problem also. But I also was checking that libxml2 was install correctly, libxml2-devel, libxml2, and libxml2-python. What's other issue regarding to this problem ?
SimpleXML support is enabled or disabled when compiling the PHP module or CGI interpreter. To make sure it is enabled, add --enable-simplexml to your ./configure command; it's only enabled by default in PHP 5.1.2 and later. Also verify you have libxml version 2.6.0 or later installed when compiling, and no --disable-libxml in your ./configure command.
You can check your libxml version in the phpinfo() output.
Nominal Animal
Last edited by Nominal Animal; 03-21-2011 at 02:01 AM.
Distribution: Mac OS X, Centos, OpenSuSE, Redhat, FreeBSD.
Posts: 26
Rep:
Hi,
Thanks for your help.
Actually I was check this module. And was see in phpinfo() where this module was enable. And it was installed. I guess this is a bug.
I try to update with repo from webtatic, and I am not find that issue come again.
My current version is php 5.3.5 version from webtatic repository.
I get that issue when I used php 5.1.6 (where this is default package for php comes from centos 5)
Now, I don't have issue for SimpleXML again.
Thank you, guys..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.