include php script inside HTML

后端 未结 5 1689
闹比i
闹比i 2020-12-09 14:19

I am a newbie and have never used PHP before. I want to execute PHP script from an HTML file on Linux. What do I need to do?

This is the content of my HTML file:

5条回答
  •  失恋的感觉
    2020-12-09 14:55

    You either run pass the file path as an argument to the php command line program, or you configure a web server to execute the page as PHP (the specifics of which depend on the web server you use) then visit the URL of the page.

提交回复
热议问题