Re: Anyway to open a PHP file and view its code in the browser?

From: Date: Thu, 14 Feb 2002 21:47:39 +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-84831@lists.php.net to get a copy of this message
then do a symbolic link On Thursday 14 February 2002 22:34, Kevin Stone wrote: > 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:jason_sheets@non.hp.com] > > 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:kevin@helpelf.com] > > Sent: Thursday, February 14, 2002 1:26 PM > > To: php-general@lists.php.net > > 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 <Kevin@helpelf.com>

« previous php.general (#84831) next »