when to use index.php instead of index.html

后端 未结 11 2368
星月不相逢
星月不相逢 2020-12-01 02:58

I am relatively new to php. There is a very basic thing that has been troubling me. I understand that php is used to make web sites dynamic. I also understand that php is on

11条回答
  •  庸人自扰
    2020-12-01 03:29

    By default, the apache server needs a file with .php extension to parse the PHP code inside it. Though, if you wish, you may configure your server, by adding a single line to the configuration file, to use files with any extension with PHP code inside it. You can edit the apache by yourself to support php also in .HTML extension.

提交回复
热议问题