Domain Name Yahoo

Easy Help Troubleshoot Your Linux Box



  

PHP code Vs Firewall

Php code : file_get_contents , fsockopen couldnt compiled

This error log was generated from httpd log.

[error] [client 192.168.1.1] PHP Warning:  file_get_contents() [<a href=’function.file-get-contents’>function.file-get-contents</a>]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/html/search/test.php on line 2

[error] [client 192.168.1.1] PHP Warning:  file_get_contents(http://www.google.com) [<a href=’function.file-get-contents’>function.file-get-contents</a>]: failed to open stream: Connection refused in /var/www/html/search/park.php on line 2

The Solution is to turn off your firewall

# service firewall stop

September 25th, 2008 Posted by admin | Domain, General, Uncategorized, firewall | no comments