Børge Strand wrote:
Here's what I do next with it. Only now this file
(www.boggle.no/test6.php) times out in the brower.

Do you see something that it obviously wrong here?

<?php
    print '<html><body>' . "\n";
    print 'test6.php<br>';
    $fp = fopen("http://www.boggle.no/message.txt";, "r");
    $contents = fread($fp);
    print $contents;
    fclose ($fp);
    print '</body></html>' . "\n";
?>

fread takes 2 parameters: the file pointer and the number of bytes to read. See http://php.net/fread for full info.


--
Stuart

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



Reply via email to