Re: Include php from html
- From: Alvaro G Vicario <alvaro_QUITAR_REMOVE@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 10:12:12 +0200
*** Luke Bellamy wrote/escribió (28 Apr 2005 20:16:29 -0700):
> I would like to put the PHP hit counter on the web site that only
> contains html files. Anyone have a good idea how I can do this without
> chaning all the files to .php?
You can instruct the webserver to pass *.html files through PHP
interpreter. If you are using Apache you may be able to use an .htaccess
file (unless prohibited by sysadmin):
# For Apache 2:
<Files *.html>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
.
- Follow-Ups:
- Re: Include php from html
- From: cowofchaos@xxxxxxxxx
- Re: Include php from html
- References:
- Include php from html
- From: Luke Bellamy
- Include php from html
- Prev by Date: Re: OT: PostgreSQL
- Next by Date: Re: Never liked printf, why is it doing this?
- Previous by thread: Re: Include php from html
- Next by thread: Re: Include php from html
- Index(es):
Relevant Pages
|