Home > Backend Development > PHP Tutorial > Why is PHP automatically commented when written in HTML code? ? ?

Why is PHP automatically commented when written in HTML code? ? ?

WBOY
Release: 2016-10-22 00:14:17
Original
2005 people have browsed it

Why is PHP automatically commented when written in HTML code? ? ?

Why is PHP automatically commented when written in HTML code? ? ?

Reply content:

Why is PHP automatically commented when written in HTML code? ? ?

Why is PHP automatically commented when written in HTML code? ? ?

This is because your HTML code is directly output to the web page without being executed by the php engine.
The browser has a fault-tolerant mechanism and will annotate this, so the structure of the web page will be corrected to a certain extent.

What you have to do is to deploy a PHP execution environment, such as lamp.

If you see the tab above, you may be using a template engine. You can check whether the relevant configuration supports native PHP tags.
Your description is very unclear, and the other answers above are also possible.

http://www.cnblogs.com/deityd...

Your template engine configuration does not enable php_tag support, or it is not used in this way.

Try changing the file name to Userindex.php

Use this format when writing php in html.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template