Posted by pangea33 on 11/22/06 01:15
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.html
[Back to original message]
|