Home > Article > Backend Development > How to close short tags in php
How to turn off short tags in php: 1. Open the "php.ini" file and search for the "short_open_tag" item; 2. Set the "short_open_tag" parameter to off; 3. Restart the service.
#The operating environment of this article: Windows7 system, PHP7.1, Dell G3 computer.
How to close short tags in php?
php turns on and off the short tag function
Sometimes short tags are indeed useful, but if some space providers do not turn them on, they will cause errors.
We need to open php.ini and search for short_open_tag, turn on or off on /off. Then restart the service.
Recommended study: "PHP Video Tutorial"
The above is the detailed content of How to close short tags in php. For more information, please follow other related articles on the PHP Chinese website!