Re: [PHPLIB] php directives in .htaccess From: Mike Nolan (mdnolan <email protected>)
Date: 10/30/99

Chris Cochella wrote:
>Could someone show me an example of putting php directives in a
>.htaccess file.

handy tip:
1 do up a page (that gets parsed) and put "phpinfo()" in it where you are
piddling.

<html>
<head>
<title>PHP Test</title></head>
<body>
<?php echo "Hello World<P>"; ?>
<HR>
<?php echo $HTTP_USER_AGENT; ?>
<HR>
<?php phpinfo()?>
</body></html>

2. load that page as you make changes to you configuration and it will show you
all kinds of neats, especially the diff between your Master Value and Local
Value.

(below could be .htaccess in top dir for user "callbox4")
==
AddType application/x-httpd-php3 .php
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3 .htm
AddType application/x-httpd-php3 .html
AddType application/x-httpd-php3 .phtml

php3_track_vars on
php3_track_errors on
php3_magic_quotes_gpc on
php3_include_path /home/callbox4/php/
php3_auto_prepend_file /home/callbox4/php/prepend.php3

>
>The PHPLIB describes this possibility:
>
>
>
>"All of this comes very handy when you have multiple virtual hosts (e.g.
>you are an ISP). In this case you can comfortably place the php3
>directives in the
><VirtualHost> block or in an .htaccess file in the client directory. "
>

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.