What output do you receive? Does it just show the PHP code?
I assume that's the case.
For a test, change the extension on the file to .php
and run it again. Does it work now?
If so, you will need to associate PHP with .html
and .htm
files on your server.
EDIT
This is the line you want to add to your Apache config:
AddType application/x-httpd-php .html
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…