Dear sirs, Please help with the follows:
When I'm trying to execute this code:
--------------------------------
$fcontents = file ('http://localhost/');
while (list ($line_num, $line) = each ($fcontents)) {
    echo "<b>Line $line_num:</b>; " . htmlspecialchars ($line) . "<br>\n";
}
--------------------------------
it runs perfectly, but when I try to change to:
--------------------------------
$fcontents = file ('http://www.php.net/');
while (list ($line_num, $line) = each ($fcontents)) {
    echo "<b>Line $line_num:</b>; " . htmlspecialchars ($line) . "<br>\n";
}
--------------------------------
it dosn't work, Can you tell why please...

Best Regards
Hayan


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to