Re: Text file

From: Date: Tue, 21 May 2002 02:22:41 +0000
Subject: Re: Text file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-98555@lists.php.net to get a copy of this message
/* Opens the file in the current dir and allows read only parimiters to it (R) */ $foo = fopen(foo.txt, R); /* This then sends the contents to the browser for output */ fpassthru($foo); fclose($foo); That is REALLY basic if you want some more functions (which your probably will) for file handling go to http://www.php.net/manual/en/ref.filesystem.php Hope this helps! ~Cleeker On Mon, 20 May 2002, Rodrigo wrote: > Hi guys: > > What I need is a php file that will read a text file and show it on a > html file. > > And it will also write to a text file, but at the end of the file. > > Thanx, Rodrigo de Oliveira Costa. > >

« previous php.general (#98555) next »