weathermap |
Subversion Repositories: |
Rev 18 | Rev 83 | |
---|---|---|
Line 24... | Line 24... | |
$outbw=-1; |
$outbw=-1; | |
$data_time = 0; |
$data_time = 0; | |
|
| |
$matches=0; |
$matches=0; | |
|
| |
$fd=fopen($targetstring, "r"); |
// $fd=fopen($targetstring, "r"); | |
$timeout = 2; | ||
$old = ini_set('default_socket_timeout', $timeout); | ||
$fd = fopen($targetstring, 'r'); | ||
ini_set('default_socket_timeout', $old); | ||
stream_set_timeout($fd, $timeout); | ||
stream_set_blocking($fd, 0); | ||
| ||
| ||
| ||
|
| |
if ($fd) |
if ($fd) | |
{ |
{ | |
while (!feof($fd)) |
while (!feof($fd)) | |
{ |
{ |