Re: Anyway to open a PHP file and view its code in the browser?
| From: | Anas Mughal | Date: | Fri, 15 Feb 2002 15:54:55 +0000 |
| Subject: | Re: Anyway to open a PHP file and view its code in the browser? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84923@lists.php.net to get a copy of this message | ||
If you are on the same machine, why don't you just
open the file as follows:
file:/filename.php
Just don't go thru the webserver.
--- Kevin Stone <kevin@helpelf.com> wrote:
> How can I open a local PHP script and view its code
> to the browser? The
> Readfile() method appears to parse and execute the
> code. The Fopen()
> method appears to parse and then not execute the
> code, leaving a blank
> screen, or at the very least displaying any non-PHP
> text existing in the
> script. This is obviously rare question because I
> can't find any
> references on this list or on Usenet. Is there a
> trick to this? Or is
> it simply not possible.
>
> Much Thanks,
> Kevin Stone <Kevin@helpelf.com>
>
=====
Anas Mughal
anasmughal@yahoo.com
anasmughal@hotmail.com
Tel: 973-249-6665
__________________________________________________
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail
http://mail.yahoo.com