Re: Re: [PHP] plain php code
| From: | Tyler Longren | Date: | Wed, 05 Jul 2000 01:33:27 +0000 |
| Subject: | Re: Re: [PHP] plain php code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-4851@lists.php.net to get a copy of this message | ||
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
>