Re: [PHP] Read Vs. Include

2001-01-31 Thread Daniel Grace
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 t

Re: [PHP] Read Vs. Include

2001-01-30 Thread Alexander Skwar
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

Re: [PHP] Read Vs. Include

2001-01-26 Thread Daniel Grace
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 "Space may be the final frontier but its ma

Re: [PHP] Read Vs. Include

2001-01-26 Thread Richard Lynch
> 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

[PHP] Read Vs. Include

2001-01-25 Thread Karl J. Stubsjoen
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 /var/www/wherever.com/betas