Re: Read Vs. Include

From: Date: Fri, 26 Jan 2001 03:18:52 +0000
Subject: Re: Read Vs. Include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36787@lists.php.net to get a copy of this message
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 made in a Hollywood basement." - Red Hot Chili Peppers - Californication ""Karl J. Stubsjoen"" <karlflips@kstub.com> wrote in message news:005b01c086fa$ec53ba30$0afc020a@kstubsjoen... > 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/betastore/iscookies.php on line 41 > > Here is the code (line 41 is superceded by a +): > > 37: # display no cookies message > 38: function NoCookies() { > 39: global $DOCUMENT_ROOT; > 40: $LocalScript = $DOCUMENT_ROOT . "/betastore"; > 41: read ($LocalScript . "/thispage.html"); > 42: } > > Thanks for any help. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#36787) next »