Home  >  Article  >  Backend Development  >  PHP does not support short tags

PHP does not support short tags

尚
Original
2019-10-30 13:27:212271browse

PHP does not support short tags

There are two tags of php, one is the other is ?>, also called short tag

PHP does not support short tags

How to enable the second type of short tags to be used in the program? This requires us to enable the configuration of short tags. Find the php configuration file, right-click and open it with a text editor

PHP does not support short tags

Find short_open_tag

PHP does not support short tags

Find the configured line

PHP does not support short tags

Change to short_open_tag=On, if it is already On, it means that the short tag has been turned on, and there is no need to set it again.

PHP does not support short tags

After the appeal step is completed, save and close the file, restart the php environment, At this time, PHP's short tag will take effect.

Recommended: php server

The above is the detailed content of PHP does not support short tags. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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