Re: need to get .html files parsed by PHP. -- WAS: why does PHP parse "*.html" files in one subdir/ but not in another?
| From: | Ashley Sheridan | Date: | Sun, 19 Jul 2009 06:53:00 +0000 |
| Subject: | Re: need to get .html files parsed by PHP. -- WAS: why does PHP parse "*.html" files in one subdir/ but not in another? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295564@lists.php.net to get a copy of this message | ||
On Sat, 2009-07-18 at 23:09 -0600, Govinda wrote:
> > i never used x-mapp-php5, but most of a forums say it is specific to
> > 1and1 hosting service. php recommends application/x-httpd-php
> >
> > http://us2.php.net/manual/en/install.unix.apache2.php
> >
> > try adding AddType application/x-httpd-php .html in your root htaccess
>
> hmmm. Darn! I just did try what you suggested above. Still no luck.
>
> > if that dosent help you'll have to add that to your htpd.conf file
>
> I am guessing that this means that I am outta luck since I am on a
> shared hosting environment and assume I do not have access to
> httpd.conf.
>
> Agreed?
>
> > It sounds like your .htaccess file may be telling .html files in a /
> > sub/directory/ to treat .html files as .php
>
> I'm sorry I misled everyone. I just looked better at things and .html
> files are NOT getting their PHP parsed... *not anywhere*. So I
> assume then that it IS an httpd.conf issue. (?) ...and only the
> host admin can turn this on for me? (Because if it is something I
> have control over he is going to give me a hard time ;-)
>
> -G
>
Generally, if a file has a .html extenstion, then it should really just
contain html. .php extensions are meant for php code containing html.
Thanks
Ash
www.ashleysheridan.co.uk