为什么是“<?"不再工作,而只是“&lt;?php";作品? [英] Why is &quot;&lt;?&quot; no longer working and instead only &quot;&lt;?php&quot; works?

查看:28
本文介绍了为什么是“<?"不再工作,而只是“&lt;?php";作品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 xampp 在本地开发,然后我从直接安装了 PHP安装程序.现在在我的一些 PHP 代码中,只有以 "<?php" 开头的 PHP 代码被正确解析.任何以<?"或<?="开头的内容都将被完全忽略并保持原样.

I was using xampp to develop locally and then I installed the PHP from the direct installer. Now in some of my PHP code, only PHP code that starts with "<?php" is correctly parsed. Anything that starts with "<?" or "<?=" is completely ignored and just left as is.

如何调整配置以解析任一令牌?

How can I adjust the configuration to parse either tokens?

推荐答案

这是一个名为

short_open_tag = 1 # (enabled)

这篇关于为什么是“<?"不再工作,而只是“&lt;?php";作品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆