Re: Include php from html
- From: "Tony Marston" <tony@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 06:29:21 +0100
It is most definitely possible to include a PHP counter in an HTML file
because I have been doing it for years. In my HTML file I include a link as
follows:
<p><img src="http://www.mydomain.com/counter.php?page=/whatever.html"
alt="counter" border="0"></p>
The PHP script 'counter.php' uses the 'page=' argument to identify which
document to count, then outputs the result as an image.
Easy peasy lemon squeezy.
--
Tony Marston
http://www.tonymarston.net
"Luke Bellamy" <bellamy_luke@xxxxxxxxxxx> wrote in message
news:3cab9daf.0504281916.68454042@xxxxxxxxxxxxxxxxxxxxx
> Hi - I have been asked to add a hit counter to a standard HTML page.
> I have found a php script to implement the counter but need to show it
> on the html page.
> I cannot include a PHP in the html file can I? the web server will not
> pre-parse a html file correct?
>
> 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?
>
> Thanks,
> Luke Bellamy
> Newcastle, Australia
.
- References:
- Include php from html
- From: Luke Bellamy
- Include php from html
- Prev by Date: Include php from html
- Next by Date: Help needed
- Previous by thread: Include php from html
- Next by thread: Re: Include php from html
- Index(es):
Relevant Pages |