[function.file-get-contents]: failed to open stream: HTTP request failed!

Discussion in 'PHP' started by smilesquare, Jun 19, 2008.

  1. #1
    Actually my script is running properly, but I want to run it to auto update my blogs. I got many blogs. So, I have to run script in many windows, it running for a big while, sometimes it has the below error: how can I solve this. Thank you.


    Warning: file_get_contents(http://mytest.com/xmlrpc.php) [function.file-get-contents]: failed to open stream: HTTP request failed! in C:\wamp\www\test\test_post.php on line 322

    Warning: file_get_contents(http://mytest.com/xmlrpc.php) [function.file-get-contents]: failed to open stream: A non-blocking socket operation could not be completed immediately. in C:\wamp\www\test\test_post.php on line 322
     
    smilesquare, Jun 19, 2008 IP
  2. rohan_shenoy

    rohan_shenoy Active Member

    Messages:
    441
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Instead of using file_get_contents(), use fopen().
     
    rohan_shenoy, Jun 19, 2008 IP
  3. FunkyFresh

    FunkyFresh Peon

    Messages:
    499
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sorry to revive an old thread but i also have the same problem. I tried fopen() instead and I still get the same error. Do I need to change permission or something like that?
     
    FunkyFresh, Dec 6, 2011 IP