Hi,
on 17/11/02 1:45 PM, Troy May ([EMAIL PROTECTED]) wrote:
> <? $header = fopen("header.html","r");
>
> echo $header; ?>
>
> It writes "Resource id #1" at the top of the page. What is that?! :)
You're missing some code -- instead, try this example from the fread() page
in the manual:
<?php
// get contents of a file into a string
$filename = "header.html";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
?>
Cheers,
Justin French
--------------------
http://Indent.com.au
Web Developent &
Graphic Design
--------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php