| >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
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