unee-t / enterprise

The code for the Unee-T Enterprise front end application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call to undefined function simplexml_load_string() whilst importing

kaihendry opened this issue · comments

Need to create my own Docker image I guess:
abiosoft/caddy-docker#175

Fixed with https://hub.docker.com/r/uneet/caddyphp

Verified like so:

[hendry@t480s tmp]$ docker run -d --rm -p 2015:2015 -v $(pwd)/src:/srv uneet/caddyphp
3bee95a23d45912be3e4405828f17d0c972ff0074b0410545f4c22d82d29a36e
[hendry@t480s tmp]$ cat src/index.php
<?php
$note=<<<XML
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
XML;

$xml=simplexml_load_string($note);
print_r($xml);
?>