php - file_get_contents - Connection timed out -


<?php $a = file_get_contents('http://www.google.com'); echo $ 

why browser returning error?

warning: file_get_contents(http://www.google.com) [function.file-get-contents]: failed open stream: connection timed out in /home/test.php on line 2 

mostly server cannot connect external resource, example, because of firewall restrictions.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -