Re: Bug #2605: file() shocks on HTTP retrieval

From: Date: Tue, 26 Oct 1999 16:46:20 +0000
Subject: Re: Bug #2605: file() shocks on HTTP retrieval
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-11916@lists.php.net to get a copy of this message
On 26 Oct 1999 rousseau@neuronnexion.fr wrote: > 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"); ^^^ two t's should be enogh > 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... > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.dev (#11916) next »