In the files of PHP files, PHP files are all unloaded. PHP files will not be parsed when PHP code is put in. html. how can PHP code in *. html files be parsed? Generally, PHP is uninstalled.
In. php filesThe PHP code in. html is not parsed when it is put into the PHP code. how can we parse the PHP code in the *. html file?
Reply content:
Generally, PHP is uninstalled.In. php filesThe PHP code in. html is not parsed when it is put into the PHP code. how can we parse the PHP code in the *. html file?
Files with the .html suffix can also be resolved by php in the server.
This operation is not recommended, and basically no one is doing this.
If you want to achieve this, you can forcibly set it in the Web Server to be resolved by the PHP parser when accessing the. html file.
In addition to the above, Smarty dedicated template separation.