Warning while load xml using the DOMDocument
<p>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.</p>

<p>Code:</p>

<pre><code>$xmlDoc = new DOMDocument();

$xmlDoc-&gt;load('http://www.domainname.com/xmlfilename');
</code></pre>

<blockquote>
  <p>Warning: DOMDocument::load(http://www.domainname.com/xmlfilename)
  [domdocument.load]: failed to open stream: Connection timed out</p>
  
  <p>Warning: DOMDocument::load() [domdocument.load]: I/O warning : failed
  to load external entity "http://www.domainname.com/xmlfilename"</p>
</blockquote>
