Do you have a question? Post it now! No Registration Necessary. Now with pictures!
February 26, 2006, 4:35 am
rate this thread
I am having problem with the file() function. In my code, I have file()
function like this:
$myfile = file($url);
when I run my file in localhost, I get the following:
[function.file]: failed to open stream: A non-blocking socket operation
could not be completed immediately. in D:\Apache
on line 81
Line 81 is: $myfile = file($url);
Now if I upload this same file in my hosting server, I get no warning
and everything runs perfect. Why am I getting this warning message? I
am behind a proxy server for accessing internet at home. Is it due to
this? My PHP version is 5.0.1.
I also tried a slightly different approach. Instead of using file(), I
put the above code inside <form></form>. When I do this, I get no
warning. But I need to use file(). Any suggestion?
Any help will be highly appreciated.
- » Must set and immediately get $_SESSION variable - help!
- — Previous thread in » PHP Scripting Forum