Re: Re: [PHP] plain php code
| From: | Rasmus Lerdorf | Date: | Wed, 05 Jul 2000 01:37:40 +0000 |
| Subject: | Re: Re: [PHP] plain php code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4854@lists.php.net to get a copy of this message | ||
readfile()
On Tue, 4 Jul 2000, Tyler Longren wrote:
>
> When I do an include() or require() it executes the php code that is
> contained in the .txt files. Any way to get around this?
>
> On Wed, 5 Jul 2000, David Robley wrote:
> > Date: Wed, 5 Jul 2000 11:00:23 +0930 (CST)
> > To: tyler.longren@midiowa.net
> > From: David Robley <huntsman@www.nisu.flinders.edu.au>
> > Subject: Re: [PHP] plain php code
> >
> > On 4 Jul, Tyler Longren wrote:
> > >
> > > Hello all-
> > >
> > > How could I print out plain php code? Not highlighted. The code is
> > stored
> > > in a .txt file on my web server.
> > >
> > > Thanks,
> > > Tyler Longren
> > >
> >
> > I assume that you mean 'print to browser'; if you simply open the file
> > with a browser, the .txt extension shiould cause it to be displayed as
> > plain text. Alternatively, you could include() it into a php script and
> > enclose it in <PRE> tags.
> >
> > Cheers
> > --
> > David Robley | WEBMASTER & Mail List Admin
> > RESEARCH CENTRE FOR INJURY STUDIES |
> > http://www.nisu.flinders.edu.au/
> > AusEinet |
> > http://auseinet.flinders.edu.au/
> > Flinders University, ADELAIDE, SOUTH AUSTRALIA
> >
>
>