Re: [PHP-INST] warning php_hostconnect: connect failed

2001-06-22 Thread Joris Van Droogenbroeck
| >Hi, | > | >I'm trying to read some webpage in a file. | >I've got some code from de php.net website: | > | >// get a web page into an array and print it out | >$fcontents = file ('http://www.php.net'); | >while (list ($line_num, $line) = each ($fcontents)) { | >echo "Line $line_num: " . ht

Re: [PHP-INST] warning php_hostconnect: connect failed

2001-06-22 Thread Jani Taskinen
There is no support for redirected urls yet. Use the 'direct' url instead: $fcontents = file ('http://www.php.net/'); That works. (note the trailing / ?) --Jani On Fri, 22 Jun 2001, Joris Van Droogenbroeck wrote: >Hi, > >I'm trying to read some webpage in a file. >I've got some code from de