I used the following code to load the xml for further process, while load itself it display the following warning in the client server but its working fine in my local machine.
Code:
$xmlDoc = new DOMDocument();
$xmlDoc->load('http://www.domainname.com/xmlfilename');
Warning: DOMDocument::load(http://www.domainname.com/xmlfilename)
[domdocument.load]: failed to open stream: Connection timed outWarning: DOMDocument::load() [domdocument.load]: I/O warning : failed
to load external entity “http://www.domainname.com/xmlfilename”
First, make sure your client’s server is configured with
allow_url_fopenset totrue.I’d also be checking firewall rules on the server. Perhaps it’s not allowed to make HTTP requests.