shell-php CentOS on file_get_contents get the domain name on this computer will return false other extranet domain name can be obtained normally

Source: Internet
Author: User
Tags centos server
Using file_get_contents on PHP CentOS to get the domain name on this computer will return FALSE for example, a CentOS server is bound with the domain name www.jitapu.me. Getting www.jitapu.me content in PHP will return false.
Like what

Other external domain name can be obtained normally. For example, the above $STR1 returns FALSE, $str 2 returns the normal content.
First firewall should be no problem, or how to access other domain names, the firewall is also access to the 127.0.0.1 port is not limited, MySQL these can be used normally.
I've met this many times. The solution is not to be baffled.

Reply content:

Using file_get_contents on PHP CentOS to get the domain name on this computer will return FALSE for example, a CentOS server is bound with the domain name www.jitapu.me. Getting www.jitapu.me content in PHP will return false.
Like what

Other external domain name can be obtained normally. For example, the above $STR1 returns FALSE, $str 2 returns the normal content.
First firewall should be no problem, or how to access other domain names, the firewall is also access to the 127.0.0.1 port is not limited, MySQL these can be used normally.
I've met this many times. The solution is not to be baffled.

Ping www.jitapu.me on CentOS and try it out.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.