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
Hi, This is an Windows Socket Api error WSAEACCES 10013 and the problem is not from php, but most probably from how do you use file_get_contents. Please show us the piece of code as it is. http://msdn.microsoft.com/en-us/library/ms740668(v=vs.85).aspx Regards