Skip to main content

Does PHP base contain SimpleXML?

  • January 12, 2017
  • 3 replies
  • 0 views

Hi,
On www.w3schools.com I read:

As of PHP 5, the SimpleXML functions are part of the PHP core. No installation is required to use these functions.

However when I try to use function simplexml_load_file() I get error response:

Fatal error: HPH01209 Call to undefined function simplexml_load_file() in /u/U13178/test.php on line 2

Anyone knows if SimpleXML is part of base php which comes with ported tools?

Thx,
frans.

3 replies

  • 0 replies
  • August 10, 2017

Hi,
On www.w3schools.com I read:

As of PHP 5, the SimpleXML functions are part of the PHP core. No installation is required to use these functions.

However when I try to use function simplexml_load_file() I get error response:

Fatal error: HPH01209 Call to undefined function simplexml_load_file() in /u/U13178/test.php on line 2

Anyone knows if SimpleXML is part of base php which comes with ported tools?

Thx,
frans.

Hi,

SimpleXML is part of RocketSoftware PHP 5.4.4.

Look at “phpinfo()”.

But SimpleXML doen’t support "process instruction <?xml encoding="IBM-1147" ?> : error when loadling file… so xml data file must be IBM-1047 encoded…

Denis

RocketSoftware PHP 5.4.4.pdf (615,0 Ko)
testsxml.php.doc (1,1 Ko)

test.xml.doc (103 Octets)
testsxml.pdf (29,0 Ko)


  • 0 replies
  • August 14, 2017

Hi,
On www.w3schools.com I read:

As of PHP 5, the SimpleXML functions are part of the PHP core. No installation is required to use these functions.

However when I try to use function simplexml_load_file() I get error response:

Fatal error: HPH01209 Call to undefined function simplexml_load_file() in /u/U13178/test.php on line 2

Anyone knows if SimpleXML is part of base php which comes with ported tools?

Thx,
frans.

Thanks.
We are still running 5.1.2 I suppose it doesn’t contain SimpleXML.


  • 0 replies
  • August 14, 2017

Hi,
On www.w3schools.com I read:

As of PHP 5, the SimpleXML functions are part of the PHP core. No installation is required to use these functions.

However when I try to use function simplexml_load_file() I get error response:

Fatal error: HPH01209 Call to undefined function simplexml_load_file() in /u/U13178/test.php on line 2

Anyone knows if SimpleXML is part of base php which comes with ported tools?

Thx,
frans.

In return from phpinfo() I see in configure command section.

–disable-simplexml

Does it mean we disabled SimpleXML?