|
Posted by crescent_au on 02/26/06 06:35
Hi all,
I am having problem with the file() function. In my code, I have file()
function like this:
$url =
"http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=$frompcode&Destination_Postcode=$topcode&Country=AU&Weight=$sweight&Service_Type=STANDARD&Height=$sheight&Width=$swidth&Length=$slength&Quantity=$shipping_num_boxes";
$myfile = file($url);
when I run my file in localhost, I get the following:
Warning:
file(http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode=2000&Destination_Postcode=4344&Country=AU&Weight=403.05&Service_Type=STANDARD&Height=800&Width=200&Length=200&Quantity=1)
[function.file]: failed to open stream: A non-blocking socket operation
could not be completed immediately. in D:\Apache
Group\Apache2\htdocs\zen-cart-v1.2.6d\includes\modules\shipping\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
Navigation:
[Reply to this message]
|