How to parse PHP syntax in a .html file on server?

后端 未结 4 619
一向
一向 2021-01-22 07:29

This feels like an extremely n00b question, but here goes...

I have a series of HTML files with a small amount of HTML content inside each (exported from a live system).

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-22 07:45

    I worked around the problem by adding a config variable which is then used in a string replacement call to replace an export-generated string with one which someone can update in a config file, before burning to CD. I can get away with this because the string replacement is essentially the only PHP in these HTML files. I'll close this question after... leaving for anyone to check up on/read about quickly.

提交回复
热议问题