|
Posted by Norman Peelman on 10/30/47 11:44
"David" <youcantoo@findmoore.net> wrote in message
news:G7ydnZTPM9VFIqvZRVn-hg@centurytel.net...
> Norman Peelman wrote:
> > "Massa Batheli" <mngong@yahoo.com> wrote in message
> > news:1144241794.046612.227520@z34g2000cwc.googlegroups.com...
> >> Sorry got another thread going, having responded for which I am
> >> grateful you deserve an answer.The proper file is checked httpd.conf
> >> not the default
> >>
> >> Thanks
> >> Massa Bathe
> >>
> >
> > AddType application/x-httpd-php .php
> >
> > This may seem like a stupid question but how are you calling your web
page.
> > As the setting above dictates, only pages ending in .php will be parsed.
> > Add .htm .html as well.
> >
> > AddType application/x-httpd-php .php .htm .html
> >
> Adding the above "AddType" line is not really a very smart idea. I
> causes Apache to parse every file named .htm, .html
> This will put a much bigger load on the server parsing each and every
> file (.htm .html) that have no PHP within them. The results will be seen
> by the end user as slow serving webpages. Is that what one really
> wants?. Don't be laze, do it the right way.
I knew someone would catch that... I just shot that off before rushing off
to work. Really what one should do is decide upon an extension for static
pages and omit that from the list, so that:
AddType application/x-httpd-php .php .htm
would allow .html pages to NOT be parsed through PHP. And as a side note,
any extension will work.
Norm
--
FREE Avatar hosting at www.easyavatar.com
[Back to original message]
|