Re: How to include a txt file on php?

From: Date: Tue, 27 May 2003 06:40:42 +0000
Subject: Re: How to include a txt file on php?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-149055@lists.php.net to get a copy of this message
Please RTFM! file() reads the file into an array. Use readfile() as was originally suggested. Miranda, Joel Louie M wrote:
Rasmus, <?php $readfile = file("/dynamic/ree_menu.wbc"); print $readfile; ?> I've tried this approach, But it does not work, any Ideas? Thanks, Louie -----Original Message----- From: Rasmus Lerdorf [mailto:rasmus@lerdorf.com] Sent: Tuesday, May 27, 2003 11:30 AM To: Miranda, Joel Louie M Cc: 'php-general@lists.php.net' Subject: Re: [PHP] How to include a txt file on php? On Tue, 27 May 2003, Miranda, Joel Louie M wrote:
Im doing some html coding's. The pages are quite huge but has the same contents. I wonder how do you include a text file on php?
readfile()
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#149055) next »