PHP script not working in HTML file

后端 未结 6 2036
北海茫月
北海茫月 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 06:47

    Stop the apache service, then add one change in c:\xampp\apache\conf\httpd.conf in the section by adding...

    AddType application/x-httpd-php .html .htm  
    

    Restart apache!

    This looks like a big fat 'feature' in the current xampp distribution for win 32-bit.

提交回复
热议问题