Afficher un message
Vieux 06/09/2007, 02h42   #8
dorayme
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: .htaccess route to php on .html

In article <5k83o4F2ig8bU2@mid.individual.net>,
"J.O. Aho" <user@example.net> wrote:

> dorayme wrote:
> > I made an .htaccess file to allow my .html files to be parsed for
> > any php on them. It has:
> >
> > AddType application/x-httpd-php .html
> >
> > It did not work on one server (a university server that is Apache
> > and Unix and all that good old stuff, nothing Windows or funny
> > stuff). Before I contact server admin, any other ways to
> > accomplish getting a .html file to be so parsed? If I name my
> > files .php on this particular server, all work fine. I can put
> > the .htaccess file simply at the top level of my website or one
> > level above (where I see no *other* files, no permission
> > probably). I have no real idea about this stuff, but I love it
> > when it works. <g>
> >

>
> If the admin has configured the apache to not allow users to use .htaccess,
> then there aren't anything you can do about it than ask the admins.
>
> IMHO it's a really bad thing to let php parse all html files, as this increase
> the load on the server.


Thanks, I better ask them. I have had a radical new thought: for
this particular job, I might just change the files to .php and be
done. All work fine then.

(As for server load, all this came up before once and it seems
not a straightforward matter. I have a site that works well and
quick that parses the html for php, nearly all files having some
php on it).

--
dorayme
  Réponse avec citation
 
Page generated in 0,05200 seconds with 9 queries