How do I add PHP code/file to HTML(.html) files?

后端 未结 12 2087
栀梦
栀梦 2020-11-21 22:05

I can\'t use PHP in my HTML pages. For example, index.html. I\'ve tried using both:

 

and



        
12条回答
  •  执笔经年
    2020-11-21 22:52

    You can modify .htaccess like others said, but the fastest solution is to rename the file extension to .php

提交回复
热议问题