简体   繁体   中英

Short open tags in PHP are being changed into html comment tag

I have a legacy PHP application that was built on codeigniter and still runs PHP5.3 on a server managed using PLESK. It was recently migrated to another server with the same environment.

However, in some parts of my view files, the PHP short open tag <?= was changed into <!--?=

左侧的源代码,右侧的输出

I want to find out what is doing this in order to have it disabled.

Then you need to change short_open_tag in your php.ini file.

If you don't have access to your config file, then you need to enable it through your admin interface...

I'm not sure about PLESK, but in cPanel, you'd go to:

cPanel > Software > Select PHP Versions

From the "php options" page, you will see an option for short_open_tag near the bottom of the options - change this to On .

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM