title: fsockopen returning server error(0)
body: <p>I'm checking <code>fsockopen</code> in Ubuntu server 13.04 with this code:</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php 
    $fp = fsockopen("www.google.com", 80, $errno, $errstr, 30); 
    if (!$fp) { 
        echo "$errstr ($errno)&lt;br /&gt;\n"; 
    } else { 
        $out = "GET / HTTP/1.1\r\n"; 
        $out .= "Host: www.example.com\r\n"; 
        $out .= "Connection: Close\r\n\r\n"; 
  
        fwrite($fp, $out); 
        while (!feof($fp)) { 
            echo fgets($fp, 128); 
        } 
        fclose($fp); 
    } 
  ?&gt;
  </code></pre>
  
  <p>and the server returning  </p>
  
  <pre><code>php_network_getaddresses: getaddrinfo failed: System error (0)
  </code></pre>
  
  <p>Any help with this?</p>