you can't run php code inside a .html files.... your files should be saved as .php so it will be parsed at the server.
Actually you can - but it means using htaccess files (as mentioned previously) or using a templating engine (e.g. Rain TPL) which stores cached php files of htmls. For everyday use, I really can't see what advantage there is to be gained from using the *.htm(l) extension if you're using server-side code.
Reputation Points: 1067
Solved Threads: 954
Disgraced Poster
Offline 6,730 posts
since Oct 2006