Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

File_get_contents Couldn't resolve host name

Discussion in 'General Discussion' started by furtif, Jun 2, 2009.

  1. furtif

    furtif Member

    Joined:
    Aug 17, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    hello,

    I have a problem into a cpanel/whm plateform.

    Why i use file_get_contents with a domain, i got this error :
    In my php.ini, i have :
    Code:
    allow_url_fopen = On
    allow_url_include = On
    
    What is the problem with this fonction ?

    Ps : sorry for my english, i am french.

    Thanks a lot
     
  2. viraj

    viraj Well-Known Member

    Joined:
    Sep 28, 2006
    Messages:
    209
    Likes Received:
    1
    Trophy Points:
    166
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    Does the /etc/hosts show the correct hostname & IPs?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. furtif

    furtif Member

    Joined:
    Aug 17, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    Hi,

    Thanks a lot ! /etc/hosts is the problem.

    he had two IP.

    Thanks
     
  4. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    400
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
    If you get that for anything else that is not in the /etc/hosts then check your resolver configuration.
     
  5. viraj

    viraj Well-Known Member

    Joined:
    Sep 28, 2006
    Messages:
    209
    Likes Received:
    1
    Trophy Points:
    166
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    You're welcome :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice