Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    1

    Default file_get_contents - need help

    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 Code:
    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. #2
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default

    Kindly refer to below mentioned URL which might helps you to solve your issue:

    Problems with function.file-get-contents] - Web Hosting Talk

Similar Threads & Tags
Similar threads

  1. api file_get_contents() error
    By danny0n in forum cPanel Developers
    Replies: 5
    Last Post: 07-13-2010, 12:40 PM
  2. File_get_contents Couldn't resolve host name
    By furtif in forum New User Questions
    Replies: 4
    Last Post: 06-02-2009, 03:22 PM
  3. SOAP or file_get_contents of https page fails
    By jvanv8 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-15-2007, 12:49 PM
  4. file_get_contents error
    By upsforum in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-14-2007, 10:04 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube