Open-source Languages & Tools for z/OS

 View Only
  • 1.  Does PHP base contain SimpleXML?

    Posted 01-12-2017 04:30

    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.



  • 2.  RE: Does PHP base contain SimpleXML?

    Posted 08-10-2017 10:19

    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)



  • 3.  RE: Does PHP base contain SimpleXML?

    Posted 08-14-2017 04:05

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



  • 4.  RE: Does PHP base contain SimpleXML?

    Posted 08-14-2017 04:19

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

    –disable-simplexml

    Does it mean we disabled SimpleXML?