Re: showsource

From: Date: Wed, 01 Nov 2000 20:08:00 +0000
Subject: Re: showsource
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23227@lists.php.net to get a copy of this message
yes, you could do something like this: if($source == "pretty") { show_source($SCRIPT_FILENAME); exit(); } elseif($source == "plain") { header("Content-type: text/plain"); readfile($SCRIPT_FILENAME); exit(); } "Bart A. Verbeek" wrote: > > Hello, > > Is there a function (or something) in PHP to show the source off a script? > I mean like: file.php3?showsource > > And then it pops up with the source of the script? > > thanks > Bart > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.general (#23227) next »