I'm glad you posted this.  It's great to know.  Unfortunately it's not
what I need to do.  I'm uploading and updating my scripts all the time.
So I need to offer code views of *active* scripts.  Changing the file
name to phps makes the scripts inactive.

Any other ideas?

-Kevin

> -----Original Message-----
> From: SHEETS,JASON (Non-HP-Boise,ex1) [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 1:38 PM
> To: 'Kevin Stone'
> Subject: RE: [PHP] Anyway to open a PHP file and view its code in the
> browser?
> 
> Rename the file you want to display as PHP code to .phps (php source)
> instead of .php.
> This will also activate PHP's built in source code highlighting.
> 
> Jason
> 
> -----Original Message-----
> From: Kevin Stone [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 1:26 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Anyway to open a PHP file and view its code in the
> browser?
> 
> 
> 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 <[EMAIL PROTECTED]>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to