Loading an XML document using php - not working $xmlDoc = new DOMDocument(); $xmlDoc->load(xmlurl)

+1 vote

I am trying to load an xml document using php but does not seem to work

I tried the same code on another server and it works

Link to test file on afrihost


link to test file on other server


Php file content


//Test loading xml document

$xmlDoc = new DOMDocument();


//This line should print out the contents of the xml document to the browser

print $xmlDoc->saveXML();


asked Sep 23, 2019 in Shared Hosting by chimwemwe (160 points)

1 Answer

0 votes

Good day

I trust you are well,

Kindly forward your request to hosting support: hosting@afrihost.com

If you require further assistance,   

please send a message to our WhatsApp helpline: https://whatsapp.afrihost.com  

or visit our Help Centre: https://help.afrihost.com/  

or see our FAQ page: http://faq.afrihost.com

answered Oct 9, 2019 by Nino (19,820 points)