Re: source
| From: | David A. Snodgrass | Date: | Mon, 21 Feb 2000 07:44:59 +0000 |
| Subject: | Re: source | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2449@lists.php.net to get a copy of this message | ||
A more COMPLETE answer,
In your httpd.conf, you will find two lines like this:
#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps
To make .php files work, you have uncommented (Removed The '#') From the
first one.
To make source display properly, uncomment the second one, and then make
sure your .php file is also saved as .phps
In your .phps, make sure you dont have any sensitive material in there,
(Paths to datafiles, Passwords, etc) that you may not want the bored hacker
to figure out :)
----- Original Message -----
From: "Chris Sano" <sano@mail.rit.edu>
To: "Paul Fontenot" <paul@code-slinger.com>; <php-general@lists.php.net>
Sent: Tuesday, June 20, 2000 10:35 PM
Subject: RE: [PHP-GENERAL] source
> Just set the file extension to .phps and if it is configured in your
> httpd.conf file, it will show the source.
>
> Chris
>
> -----Original Message-----
> From: Paul Fontenot [mailto:paul@code-slinger.com]
> Sent: Wednesday, June 21, 2000 2:35 AM
> To: php-general@lists.php.net
> Subject: [PHP-GENERAL] source
>
>
> What is the function to show php source? Like when you click the source
> buttons on www.php.net...
>
> -Paul
>
>
>
> --
> 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
>