PHP script not working in HTML file
Solution 1:
I assume you are trying to use php inside .html file? Try adding .htaccess file or changing apache config with the following line:
AddHandler application/x-httpd-php .html
Solution 2:
XAMPP already includes PHP, but unless you end the script name with .php
it is unlikely to be processed by the PHP engine.
Solution 3:
Stop the apache service, then add one change in c:\xampp\apache\conf\httpd.conf in the section by adding...
AddType application/x-httpd-php .html .htm
Restart apache!
This looks like a big fat 'feature' in the current xampp distribution for win 32-bit.