Results 1 to 4 of 4

Thread: simplexml_load_string()

  1. #1
    Join Date
    Oct 2007
    Location
    Chennai - India
    Posts
    24
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default simplexml_load_string()

    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.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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,...) {
    ACTIONS HERE
    }



    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Oct 2007
    Location
    Chennai - India
    Posts
    24
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Thank You

    I try to install new version 5

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •