title: php_network_getaddresses: getaddrinfo failed: Name or service not known
body: <p>Here is a snippet of my code</p>
  
  <pre><code>$fp = fsockopen($s['url'], 80, $errno, $errstr, 5);
  if($fp){
          fwrite($fp, $out);
          fclose($fp);
  </code></pre>
  
  <p>When I run it, it outputs:</p>
  
  <blockquote>
    <p>unable to connect to www.mydomain.net/1/file.php:80 (php_network_getaddresses: getaddrinfo failed: Name or service not known</p>
  </blockquote>
  
  <p>I'm using this to submit GET data to the <code>$s['url']</code></p>
  
  <p>I can't figure out why. Any help would be greatly appreciated.</p>