What is the difference between php and html file extensions?

后端 未结 10 1637
无人共我
无人共我 2020-12-31 18:20

I am having a .php file with the following code. While I am changing the extension of the file as .html then also it is behaving in the same way. C

10条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-31 18:41

    As far as I Know, depending on the extension the web server will process your file on one way or another. Also, for example, you could have a PHP file that doesn't generate any HTML output, but it redirects to another file.

    If you want to give a *.html ended page, you could do it programatically.

提交回复
热议问题