Chris Sano wrote:
How would I go outputting my PHP file as a text file -- for example, I have
a set of scripts that I plan to release to the public and would like to make
this script viewable through PHP without having to call a text file. I know
I have seen this somewhere and I'm wondering if any of you guys know how to
do this..

In case the above was confusing, I want to have a link that will allow the
user to view the source code (and have it print out the code without
executing it).

Chris

one way is:
<?php
show_source("$_SERVER['PHP_SELF']");
?>
another is to call the file "filename.phps" instead of "filename.php"


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



Reply via email to