Today, I saw the error code from a new user while reading the forum. I haven't found any errors for a long time. What do I wonder about? (Why ?) Haha.
It was later discovered that the mark was incorrect. He used the short mark. But it is not enabled in my php. in configuration. Ah!
1. xml style (recommended for standard style)
Copy codeThe Code is as follows:
<? Php
Echo "this is an xml style Mark ";
?>
Xml style tags are commonly used and recommended tags. They cannot be disabled on servers. They can be used in both xml and xhtml.
2. script style
Copy codeThe Code is as follows:
<Script languange = "php">
Echo 'this is a script style flag ';
</Script>
3. Brief style
Copy codeThe Code is as follows:
<? This is a short style mark;?>
Note: You must set short _ open_tag = on in php. ini. The default value is on, or the-enable-short-tags option is added during PHP compilation. (PHP 3 can also use the short_tags () function to activate short tags .)
4. asp Style
Copy codeThe Code is as follows:
<%
Echo 'this is an asp-style tag ';
%>
Note: You must enable asp_tags = on in the php. ini configuration file;
The above asp style and short style must be set in php. ini. It is not supported by default.
Note: The support for ASP style tags is added in version 3.0.4.
Note: Do not use short marks in the following situations: Develop programs or libraries to be released, or develop on servers beyond the control of users. Because the target server may not support short tags. For code migration and release, make sure that you do not use short marks.