Bug #2605: file() shocks on HTTP retrieval
| From: | rousseau at neuronnexion dot fr | Date: | Tue, 26 Oct 1999 15:10:40 +0000 |
| Subject: | Bug #2605: file() shocks on HTTP retrieval | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11910@lists.php.net to get a copy of this message | ||
From: rousseau@neuronnexion.fr
Operating system: Linux / Alpha
PHP version: 3.0.12
PHP Bug Type: Misbehaving function
Bug description: file() shocks on HTTP retrieval
Using PHP 3.0.12, Apache 1.3.9 on Linux / Alpha
A script such as :
<?
$lines = file ("htttp://www.altavista.com");
for ($i = 0; $i < count ($lines); $i++) {
print $lines[$i];
}
?>
shocks on execution with a :
Warning: Invalid URL specified, http://www.altavista.com
in
/home/web/nnx/services/listes/listesman/tliste.phtml on line 3
I tried as a workaround to use the Snoopy class found on http://www.phpinsider.com/php/code/, without much
further success
When trying to fetch the same page, it shocks on line 72, which reads :
$URI_PARTS = parse_url($URI);
So I strongly suspect a probleme with the internal function that parses URL...