title: PHP:DOMDocument::load(): I/O warning : failed to load external entity
body: <pre><code>class restRendering
  {
      public $RestUrl='http://www.myweather2.com/developer/forecast.ashx?uac=AnwWoM6K2.&amp;output=xml&amp;query=10591';
      public $XSLTPath="receipe.xsl";
  
      //setter method for test url
  
          public function setRestUrl( $value )  
          {  
              $this-&gt;RestUrl = $value;  
          }  
          public function setXSLTPath( $value ) 
          {
              $this-&gt;XSLTPath = $value;  
          }
  
          //It renders the iframe with base url and path.
          public function render(){
               //load the XML 
                    $xml_Doc = new DOMDocument();
  
                    if($xml_Doc-&gt;load($this-&gt;RestUrl))
                    {
                            //load the XSL 
                            $xsl= new DOMDocument();
                            $xsl-&gt;load($this-&gt;XSLTPath) or die("can not load  XSLT file"); 
  
                           $xslt = new XSLTProcessor($xsl);
                           $xslt-&gt;importStyleSheet($xsl);
  
                              print $xslt-&gt;transformToXML( $xml_Doc ) or die("Trasform Error");
                      }
                  else{
                          echo "Can not load the url";
                      } 
  
  
          }   //End of Render method.
  
  }
  </code></pre>
  
  <p>While executing I am getting this error:</p>
  
  <blockquote>
    <p>Warning: DOMDocument::load(): php_network_getaddresses: getaddrinfo failed: No such host is known. in D:\xampp\htdocs\sweet\restRendering.php on line 25</p>
    
    <p>Warning: DOMDocument::load(http://www.myweather2.com/developer/forecast.ashx?uac=AnwWoM6K2.&amp;output=xml&amp;query=10591): failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known. in D:\xampp\htdocs\sweet\restRendering.php on line 25</p>
    
    <p>Warning: DOMDocument::load(): I/O warning : failed to load external entity "http://www.myweather2.com/developer/forecast.ashx?uac=AnwWoM6K2.&amp;output=xml&amp;query=10591" in D:\xampp\htdocs\sweet\restRendering.php on line 25</p>
  </blockquote>