duanba4254 2016-05-15 01:11
浏览 17
已采纳

在“>”运算符之后不解析PHP文件

I've got a crucial problem with some php files after upgrading from php 5.3 to php 7 (but also to 5.6 or 5.5).

I use the operator ">" within a "if" block. It seems as if the server in this operator terminates the processing. The code behind this operator is displayed as normal HTML text.

For example. The following code

if ($value > 0) {
    echo "This is a test!";
}

leads to:

0){echo "This is a test!";}

What can I do to solve my problem?

  • 写回答

1条回答 默认 最新

  • duanpi5733 2016-05-15 11:32
    关注

    Ok I got it. There was a misconfiguration of the php.ini file. My predecessor activated the short_open_tag... and I do not. Thank you all for the help!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 merge函数占用内存过大
  • ¥15 Revit2020下载问题
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
  • ¥15 单片机无法进入HAL_TIM_PWM_PulseFinishedCallback回调函数
  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.