RE: [PHP] Anyway to open a PHP file and view its code in the brow ser?

From: Date: Thu, 14 Feb 2002 22:53:59 +0000
Subject: RE: [PHP] Anyway to open a PHP file and view its code in the brow ser?
Groups: php.general 
Request: Send a blank email to php-general+get-84840@lists.php.net to get a copy of this message
symbolic links are basically pointers to another file/directory eg. you have a file foo.html you can create a symbolic link to it and call it bar.html - if you refer to bar.html, then you're really referring to foo.html why are they useful ? well, suppose you want a two or more files/dirs to have the exact same content (for some reason, since changing one will change to other) but the content can get quite large, you then use a symbolic link and you save disk space on a windows system, i don't think you can (please correct me if I'm wrong here - i'd like to know if it's possible) but on unix, use the command "ln" HTH Martin -----Original Message----- From: Kevin Stone [mailto:kevin@helpelf.com] Sent: Friday, February 15, 2002 9:44 AM To: 'Andreas Gietl'; php-general@lists.php.net Subject: RE: [PHP] Anyway to open a PHP file and view its code in the browser? I did a net wide search on Symbolic links to learn what they are and how to use them. Wouldn't you know everyone's talking about them but no one explains what they are or how to use them. So I'm forced to ask... What are symbolic links? Why are they useful? And how do I use them? -- Kevin <Kevin@helpelf.com> > 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> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#84840) next »