If you use file_get_contents to retrieve the domain name on the local machine on PHPcentos, false is returned. For example, the domain name www. jitapu. me is bound to a centos server. If you get www. jitapu. me content in php, false is returned. For example, {code ...} other Internet domain names can be obtained again .... in PHP centos, if file_get_contents is used to retrieve the domain name on the local machine, false is returned. For example, if a centos server is bound with a domain name www. jitapu. me. If you get www. jitapu. me content in php, false is returned.
For example
$str1 = file_get_contents('http://www.jitapu.me'); $str2 = file_get_contents('http://www.baidu.com');
Other Internet domain names can be obtained normally again. For example, $ str1 returns false and $ str2 returns normal content.
First, the firewall should be okay. Otherwise, how can we access other domain names? The firewall also has no restrictions on ports accessing 127.0.0.1. mysql can be used normally.
I have encountered this many times. Think twice about it.
Reply content:
In PHP centos, if file_get_contents is used to retrieve the domain name on the local machine, false is returned. For example, the domain name www. jitapu. me is bound to a centos server. If you get www. jitapu. me content in php, false is returned.
For example
$str1 = file_get_contents('http://www.jitapu.me'); $str2 = file_get_contents('http://www.baidu.com');
Other Internet domain names can be obtained normally again. For example, $ str1 returns false and $ str2 returns normal content.
First, the firewall should be okay. Otherwise, how can we access other domain names? The firewall also has no restrictions on ports accessing 127.0.0.1. mysql can be used normally.
I have encountered this many times. Think twice about it.
Ping www. jitapu. me On centos.