Page 1 of 1

failed to open stream: An attempt was made to access a socke

PostPosted: 24. February 2011 05:22
by rupam_jaiswal
HI,
I am a newbie,please excuse if similar issue has been posted earlier,
I have installed xampp on windows 7 a few days back, 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