PHP Parse错误,需要帮助

时间:2011-02-06 15:29:34

标签: php syntax-error

用我全新的apache2服务器(mod php)在我的ubuntu机器上问好你有这个test.php

 <?php
    if($_GET***91;'foo'***93; == '</test>'){
        exit();
    }
 ?>

然而,当我执行get请求时,我在apache日志中看到了这一点:

[Sun Feb 06 16:47:51 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected '*' in /var/www/test.php on line 2

任何想法??? thnx提前

1 个答案:

答案 0 :(得分:1)

试试这个:

<?php
    if($_GET['foo'] == '</test>') {
        exit();
    }
?>