开发者

PHP Parse error, help needed

hello in my ubuntu machine with my brand new apache2 server (mod php) a have this test.php

 <?php
    if($_GET***91;'foo'***93; == '</test>')开发者_运维问答{
        exit();
    }
 ?>

however when i do a get request then i saw this in the apache logs :

[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

any ideas??? thnx in advance


Try this:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜