failed to open stream: An attempt was made to access a socket in a way forbidden

Discussion in 'Site & Server Administration' started by php_techy, Feb 23, 2011.

  1. #1
    HI,
    I am a newbie,please excuse if similar issue has been posted earlier,
    I have installed xampp on windows 7, was working with it finely till yesterday.
    I am calling this function file_get_contents($site) , and was getting the contents till last night, didn't modify any well, don't what happened in , now its giving me error
    Warning: file_get_contents(http://www.site.com) [function.file-get-contents]: failed to open stream: An attempt was made to access a socket in a way forbidden by its access permissions.
    in C:\xampp\htdocs\class\property\testz.php on line 18

    error log has
    [Thu Feb 24 09:17:39 2011] [error] [client 127.0.0.1] PHP Warning: file_get_contents(http://www.site.com) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: An attempt was made to access a socket in a way forbidden by its access permissions.\r\n in C:\\xampp\\htdocs\\class\\property\\testz.php on line 18

    Can anyone sort out this issue..
    Regards
     
    Last edited: Feb 23, 2011
    php_techy, Feb 23, 2011 IP
  2. sacx13

    sacx13 Active Member

    Messages:
    438
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #2
    sacx13, Feb 24, 2011 IP