Syntax highlighting through Apache (Re: [PHP] Got a problem I cant figure out)
| From: | bvr | Date: | Mon, 28 Jan 2002 13:24:20 +0000 |
| Subject: | Syntax highlighting through Apache (Re: [PHP] Got a problem I cant figure out) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82394@lists.php.net to get a copy of this message | ||
I just thought of this good tip:
To show the highlighted php source without constanly renaming your scripts
you can add the the following to your httpd.conf :
Alias /src /your/document/root
<LocationMatch /src/*>
ForceType application/x-httpd-php-source
</LocationMatch>
Now, for example to show the source of
http://localhost/index.phtml
you can use
http://localhost/src/index.phtml
bvr.
On Mon, 28 Jan 2002 08:27:05 -0400, Miles Thompson wrote:
>A goog first step is to rename the page with a .phps extension and display
>it in the browser. The coloring of the text often gives you an idea where
>PHP got turned off or something critical was commented out.