PHP script not working in HTML file

后端 未结 6 2024
北海茫月
北海茫月 2020-11-27 06:22

I\'m new to PHP. I installed XAMPP and have Apache running. I created helloworld.php in XAMPP\'s htdocs and got PHP to display in my browser. My question is, why does my PHP

6条回答
  •  抹茶落季
    2020-11-27 07:07

    XAMPP already includes PHP, but unless you end the script name with .php it is unlikely to be processed by the PHP engine.

提交回复
热议问题