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 - need help

Discussion in 'General Discussion' started by sam0t, Mar 2, 2010.

  1. sam0t

    sam0t Registered

    Joined:
    Mar 2, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    Hi, I have 2 cpanel accounts and I need to pull in data from 1 to the other using file_get_contents.

    When I go to the url in a browse I can see it perfectly.
    When I use file_get_contents on another account I get the error
    PHP:
    Warningfile_get_contents(http://joomla.quantumtek.com.au/beamanager) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/manager/public_html/index.php on line 2
    When I use the same piece of code on a completelly external server the page content is loaded in succesfully.

    Thanks in advance to anyone who can give me any tips
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    68
    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