Include php from html



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
.



Relevant Pages

  • Re: Updated web page, but seeing older one?
    ... > was to move all pages to PHP. ... > PHP code in a file with HTML extension and it would work, ... the .html file for my most-visited page is just a quick redirect to ...
    (Fedora)
  • Re: PHP in html
    ... HTML includes are normally done using SSI. ... You can have php includes in a html file. ... configured to parse a .html file through PHP. ...
    (comp.lang.php)
  • Re: PHP and Javascript
    ... and rename my html file to .php, the Javascript doesn't run on the ... Maybe a bug in php? ... It then sends you a plain HTML document. ... So, if a javascript is not executed, this means you have something ...
    (comp.lang.php)
  • Re: Include php from html
    ... It is most definitely possible to include a PHP counter in an HTML file ... > Hi - I have been asked to add a hit counter to a standard HTML page. ... the web server will not ...
    (comp.lang.php)
  • Re: php within dhtml, is that possible?
    ... At server side I generate an html file to include some data obtained ... head and the JS directives and the data with php. ...
    (comp.lang.php)