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@hotmail.com> wrote in message
news:3cab9daf.0504281916.68454042@posting.google.c om...[color=blue]
> 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[/color]