1
所以,我有2个PHP文件,index.php
和include.php
。问题当使用短标签包含php文件
在index.php
<?php
include ('include.php');
?>
在include.php
<?
$a = 1>0;
echo "test";
当我运行index.php
,我所得到的是
0; echo "test";
这种情况发生时的部份include.php是使用短开放标签,任何人都知道什么是问题?
我使用PHP 5.4.16
你启用短标记? – chris85
'short_open_tag =开' –
如果您看到'0;回声“测试”;'这意味着'<? $ a = 1>'被解析为HTML。 –