Php outputs a null variable in HTML. how can this problem be solved?

Source: Internet
Author: User
Php outputs empty PHPcode in HTML & lt ;? Php $ a & quot; 1 & quot ;;? & Gt; & lt; html & gt; & lt; head & gt; & lt; title & gt; test & lt; title & gt; & lt; head & gt; & lt; body & gt; 1. method 1: & lt; br & gt; I want to output the value of this variable & amp; nbs php. the output variable in HTML is empty.
PHP code
  
  Test1. Method 1:
I want to output the value of this variable
2. Method 2:
I want to output the value of this variable


------ Solution --------------------
Enable the short Mark function

However, it is generally not recommended to do this.
------ Solution --------------------
Open the short tag
------ Solution --------------------
It is best not to open it. I cannot tell why. the beginning of XML is
">
------ Solution --------------------
In php. ini, remove the semicolon (;) from the short_open_tag. Set it to On. remember to restart apache.

If the field tag is not enabled, it is written in the standard format.
------ Solution --------------------
Discussion
The tool I used is DW. how can I open the short tag and what will happen after it is opened?

If the short tag function is not enabled, how can I write link parameters?

For example, "> How do I write a label that does not enable short tags?

------ Solution --------------------
Take a look at the FAQ in the top post...

If a short tag is opened, it is easy to confuse it with some other language code, resulting in greater confusion.
------ Solution --------------------
Sorry, I just found that long labels cannot be like this. , #6 #7. the reply is correct. Discussion

It is best not to open it. I cannot tell why. the beginning of XML is
">

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.