RE: [PHP] Turn off PHP for certain directories?
| From: | Timothy Hitchens \(HiTCHO\) | Date: | Sun, 02 Feb 2003 05:55:24 +0000 |
| Subject: | RE: [PHP] Turn off PHP for certain directories? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133960@lists.php.net to get a copy of this message | ||
If you don't use <?php tags in the file it won't make a huge different
if it is on or
off... but if you don't want any parsing see below.
In your .htaccess file do the following for the file types to be turned
off
and remember that this will be from here out in the doc tree:
AddType text/html .html .php
Timothy Hitchens (HiTCHO)
Web Application Consulting
e-mail: tim@hitcho.com.au
> -----Original Message-----
> From: Benjamin Smith [mailto:bens@effortlessis.com]
> Sent: Sunday, 2 February 2003 3:32 PM
> To: php-general@lists.php.net
> Subject: [PHP] Turn off PHP for certain directories?
>
>
> Is it possible (using an apache directive, perhaps?) to turn
> off php parsing
> for certain directories within a site? (but not others?)
>
> I picture something like (in httpd.conf)
>
> <directory /home/www/somesite.com/codearchive>
> AllowOverride All
> Options FollowSymLinks
> NoParsePHP
> </directory>
>
> Can this be done? How? Perhaps as a php_value entry in the
> <VirtualHost>
> directive?
>
> Thanks,
>
> -Ben
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>