PHP - 'print/echo' displaying closing tags - or not outputting

前端 未结 1 1132
别那么骄傲
别那么骄傲 2021-01-20 01:11

Starting some PHP and confused by the way echo/print are working.

I\'ve got this code in my index.html:

Hell         


        
1条回答
  •  抹茶落季
    2021-01-20 01:22

    You cannot put PHP code in an HTML file (unless you tell Apache to parse HTML files).

    Rename the file to index.php

    Do you have a webserver with PHP set-up?

    0 讨论(0)
提交回复
热议问题