title: I'm getting "Unable to find the socket transport 'http'" error suddenly. It was working fine until we switched networks
body: <p>After a network switch, parts of my program that send data to other servers are no longer working.</p>
  
  <p>I tried the following code:</p>
  
  <pre><code>&lt;?php
  fsockopen("www.php.net", 80, &amp;$errno, &amp;$errstr, 30);
      if(!$fp) {
          echo "Error: $errstr ($errno)&lt;br&gt;\n";
      } else {
          fputs($fp,"GET / HTTP/1.0\n\n");
          while(!feof($fp)) {
              echo fgets($fp,128);
          }
          fclose($fp);
      }
  ?&gt;
  </code></pre>
  
  <p>After running that code, I am presented with the following error: </p>
  
  <blockquote>
    <p>Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (19)</p>
  </blockquote>
  
  <p>What do I need to check to ensure this works? It's baffling because it was working fine just before switching networks. I'm also getting the <strong>"php_network_getaddresses: getaddrinfo"</strong> error when I try get_file_contents.</p>