开发者

PHP Parse error, help needed

开发者 https://www.devze.com 2023-02-09 01:55 出处:网络
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>\')开发者_运维问答{

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

精彩评论

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