Extreme newbie here (halfway through my first book :) ).  I need to open a
file, read the whole file into a variable, manipulate it, and then echo it
to the screen.  I'm doing it right from my book and it's not working.
Here's what I have now:

<? $header = fopen("header.html","r");

echo $header; ?>

It writes "Resource id #1" at the top of the page.  What is that?!  :)

I have also tried using file().  That displays "Array" on the screen.  What
am I doing wrong?



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

Reply via email to