PHP 8.5.0 Alpha 2 available for testing

Voting

: max(eight, six)?
(Example: nine)

The Note You're Voting On

m a p o p a at g m a i l. c o m
19 years ago
you can avoid the infinite loop and filling the error logs
by an simple if statement
Here is the example

$handle = fopen("http://xml.weather.yahoo.com/forecastrss?p=AYXX0008&u=f", "r");
$xml = "";
if ($handle)
{
while (!feof($handle))
{
$xml .= fread($handle, 128);
}
fclose($handle);
}

<< Back to user notes page

To Top