View Full Version : simplexml_load_string()

10-11-2007, 07:17 AM
Hai I am user version 4.4.6 in php, when I use this function I got below error.

Fatal error: Call to undefined function: simplexml_load_string() in /home/gants/public_html/myfacultylounge/s3-test/s3.php on line 170

How to solve this problem.

10-11-2007, 07:20 AM
The function is not defined. Define it, or install the extension/necessary version of PHP to install it.
If you want to define it,
function simplexml_load_string($in1,$in2,$in3,...) {

Now, if you are using this with a premade setup, such as a forum, the same applies, but that means there is a bug in the system. Try updating your script/software if available, or reinstalling. If it is still a problem, I suggest contacting the creator(s) for an answer.

10-11-2007, 07:31 AM
Thank You

I try to install new version 5

10-11-2007, 09:22 AM
The simplexml extension is available for PHP4, but it's part of the standard installation for PHP5, so you may as well just upgrade, especially as support for PHP4 will be withdrawn fairly soon.