title: MAMP php 5.6.2 file_get_contents not working (timeout)
body: <p>I have searched and cannot find a reason why this isn't working. I have tried executing from command line as well as apache and it does not work.</p>
  
  <pre><code>&lt;?php
  echo file_get_contents("http://google.com");
  ?&gt;
  </code></pre>
  
  <p>I have a simple php script as shown above that simply makes a request to google and outputs the contents.</p>
  
  <p>Error:</p>
  
  <pre><code>Warning: file_get_contents(http://google.com): failed to open stream: Operation timed out in /Applications/MAMP/htdocs/p.php on line 2
  </code></pre>
  
  <p>PHP version:
     PHP 5.6.2 (cli) (built: Oct 20 2014 16:21:27) </p>
  
  <pre><code>allow_url_fopen = On
  </code></pre>
  
  <p>The odd part is if I use /usr/bin/php it works fine. (Built in apple version)</p>
  
  <p>Here is the wireshark capture:
  <a href="https://www.dropbox.com/s/u7jdg494fmud22i/packet_capture_php_network.pcapng?dl=0" rel="nofollow">https://www.dropbox.com/s/u7jdg494fmud22i/packet_capture_php_network.pcapng?dl=0</a></p>