On Tuesday, January 30, 2001 at 3:04 PM, Alexandar Skwar wrote:
So sprach Daniel Grace am Thu, Jan 25, 2001 at 07:18:52PM -0800:
readfile($filename);
Why not include?
Because include will execute any PHP code in the included file and readfile
will not, it just dumps the entire file to the
So sprach Daniel Grace am Thu, Jan 25, 2001 at 07:18:52PM -0800:
readfile($filename);
Why not include?
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.digitalprojects.com | http://www.iso-top.de
iso-top.de - Die
I want to *read* a file into a page and not process any PHP. I'm just
reading an HTML file. I though it was simple, I thought I had it figured
out, but now when I try, I get the following error:
Unless there is PHP code in there that you want to make sure it doesn't get
executed, 'include'
Any of these will work:
echo implode("\n", file($filename));
fpassthru(fopen($filename, "r"));
readfile($filename);
You probably want readfile().
http://www.php.net/manual/en/function.readfile.php
--
- Daniel Grace http://dewin.oldbattery.com/
"Space may be the final frontier but its
Hello,
I want to *read* a file into a page and not process any PHP. I'm just
reading an HTML file. I though it was simple, I thought I had it figured
out, but now when I try, I get the following error:
Fatal error: Call to unsupported or undefined function read() in
5 matches
Mail list logo