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

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -