Re: why does PHP parse "*.html" files in one subdir/ but not in another?
| From: | Adam Shannon | Date: | Sun, 19 Jul 2009 00:36:14 +0000 |
| Subject: | Re: why does PHP parse "*.html" files in one subdir/ but not in another? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295551@lists.php.net to get a copy of this message | ||
On Sat, Jul 18, 2009 at 7:01 PM, Govinda <govinda.webdnatalk@gmail.com>wrote:
> Hi all,
>
> ..sitting here thinking this is so easy, and I must have been over this
> already in the past.. but it is eluding me just now..
>
> I can't figure out why files with the .html extension ARE being parsed by
> PHP when they are in the main doc root dir/, or in one subdirectory down
> from there.. BUT NOT when in *another* new subdirectory that I just
> created. Both subdirectories have the exact same perms (same owner & group
> too), both have the same php.ini file in them,... neither have an .htaccess
> file in them.. (if that would matter?).
>
> Anyway I just need to get PHP tp process all .html files in this and in any
> new subdirectory(ies) that I will make.
> Can someone point me to what I need to pay attention to?
>
It sounds like your .htaccess file may be telling .html files in a
/sub/directory/ to treat .html files as .php
Just add this to your root .htaccess
AddType x-mapp-php5 .html
>
> Thank you
> -Govinda
>
>
>
> ------------
> Govinda
> govinda.webdnatalk@gmail.com
>
>
--
- Adam Shannon ( http://ashannon.us )