|
Posted by dorayme on 11/23/06 04:26
In article
<1164158152.570394.24240@b28g2000cwb.googlegroups.com>,
"pangea33" <pangea1013@gmail.com> wrote:
> dorayme wrote:
> > In article <MNu8h.105$jN2.30@newsfe07.lga>,
> > "Steve" <no.one@example.com> wrote:
> >
> > > "dorayme" <doraymeRidThis@optusnet.com.au> wrote in message
> > > news:doraymeRidThis-16E0BB.12425621112006@news-vip.optusnet.com.au...
> > > | By turning PHP on in the control panel for a Windows server at
> > > | Optus, and changing files to end in .php, includes got to be
> > > | working fine:
> > > |
> > > | <? include "footer.txt"; ?>
> > > |
> > > | (where footer.txt is in same directory)
> > > |
> > > | Question: Is there a simple way to do this with all the .html
> > > | files without changing their names?
> > >
> > > yes.
> >
> > OK, lets play 20 questions. <g>
> >
> > What should I do next that is guaranteed to take me further
> > towards the answer. I have learning difficulties.
> >
> > --
> > dorayme
>
> You have to instruct Apache to serve pages with a .html extension to
> PHP for processing.....
>
> Add .html to this php directive in php.ini
>
> 1) search for this in php.ini
> AddType application/x-httpd-php
>
> 2) .html at the end of the line like this
>
> AddType application/x-httpd-php .php .html
>
> if you want htm page to run add .htm ..
> AddType application/x-httpd-php .php .html .htm
>
> 3) restart Apache...
>
> If you are not having access to php.ini.. put it line 2 in .htacess
> file and place it in your webroot...
>
> quoted from here:
> http://www.garayed.com/php/9661-apache2-processing-php-files-html-extensions.h
> tml
thanks pangea33... I was rather looking forward to 20
questions... yes this sort of thing works to get the php engine
to show interest in html files...
--
dorayme
Navigation:
[Reply to this message]
|