Hi all,
I am having problem with the file() function. In my code, I have file()
function like this:
$url =
"http://drc.edeliver.co m.au/ratecalc.asp?Pi ckup_Postcode=$ frompcode&Desti nation_Postcode =$topcode&Count ry=AU&Weight=$s weight&Service_ Type=STANDARD&H eight=$sheight& Width=$swidth&L ength=$slength& Quantity=$shipp ing_num_boxes";
$myfile = file($url);
when I run my file in localhost, I get the following:
Warning:
file(http://drc.edeliver.com.au/ratecalc....200&Quantity=1)
[function.file]: failed to open stream: A non-blocking socket operation
could not be completed immediately. in D:\Apache
Group\Apache2\h tdocs\zen-cart-v1.2.6d\include s\modules\shipp ing\auspost.php
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.
Ben