RE: [PHP] showsource
| From: | Brian Paulson | Date: | Wed, 01 Nov 2000 22:44:44 +0000 |
| Subject: | RE: [PHP] showsource | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-23263@lists.php.net to get a copy of this message | ||
In a password protected area create a file like so
<?
show_source($file);
?>
then do like this
http://www.server.net/protected/dir/source.php?file=file.php
Hope this helps
Thank You
Brian Paulson
Sr. Web Developer
1-800-279-6397 X207
bpaulson@chieftain.com
http://www.chieftain.com
>-----Original Message-----
>From: mohrt@ispi.net [mailto:mohrt@ispi.net]On Behalf Of Monte Ohrt
>Sent: Wednesday, November 01, 2000 2:33 PM
>To: Julia A . Case
>Cc: php-general@lists.php.net; Ron Robertson
>Subject: Re: [PHP] show source
>
>
>That will work as well, unless you don't want to deal with symbolic
>links. It can get messy quick if you want to be able to view the source
>to a LOT of files.
>
>
>"Julia A . Case" wrote:
>>
>> Quoting Monte Ohrt (monte@ispi.net):
>> > Just beware, that may be a bit dangerous for public use:
>> >
>> > showsourcescript.php?script=%2Fetc%2fpasswd
>> >
>> If I understand you right... link the script.php to script.phps
>then look at the file with
>> your browser and it will show color highlighted code.
>>
>> Julie
>>
>> --
>> [ Julia Anne Case ] [ Ships are safe inside the harbor, ]
>> [Programmer at large] [ but is that what ships are really for. ]
>> [ Admining Linux ] [ To thine own self be true. ]
>> [ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
>>
>
>--
>Monte Ohrt <monte@ispi.net>
>http://www.ispi.net/
>
>--
>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
>
>