abdfahim Posted June 14, 2010 Share Posted June 14, 2010 I have hosted one of my website in my laptop (localhost) on test. The problem is, at my home, everything works fine, but when I connect my laptop to my office LAN and try to run that page, file_get_contents does not work, everything else works fine. So, I am wondering whether any firewall or antivirus is preventing to open any remote site whenever I am inside my office LAN. Can anyone suggest anything please? Or how to check what is the exact problem. The error I am getting in my office is Warning: file_get_contents(http://www.mywebsite.com/tf.txt) [function.file-get-contents]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\st_page.php on line 19 Link to comment https://forums.phpfreaks.com/topic/204729-can-firewall-block-any-php-function/ Share on other sites More sharing options...
Mchl Posted June 14, 2010 Share Posted June 14, 2010 Yes, it is possible for firewall to block this connection. Consult with your network administrator. Link to comment https://forums.phpfreaks.com/topic/204729-can-firewall-block-any-php-function/#findComment-1071850 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.