Anyway to open a PHP file and view its code in the browser?
| From: | Kevin Stone | Date: | Thu, 14 Feb 2002 20:26:13 +0000 |
| Subject: | Anyway to open a PHP file and view its code in the browser? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-84815@lists.php.net to get a copy of this message | ||
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>