On Thu, 2002-02-14 at 12:26, Kevin Stone 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.
No, readfile() and fopen() should both do what you want. If not, it's a bug, and it would be a bit of a showstopper--which leads me to believe that something else is going on, or someone would've noticed by now. :) But we do miss things, so can you post a short sample script? > Much Thanks, > Kevin Stone <[EMAIL PROTECTED]> -- Torben Wilson <[EMAIL PROTECTED]> http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php