[英]PHP Parse error, help needed
hello in my ubuntu machine with my brand new apache2 server (mod php) a have this test.php 你好,在我的ubuntu机器上,我的全新apache2服务器(mod php)中有一个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 : 但是,当我执行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
any ideas??? 有任何想法吗??? thnx in advance
提前thnx
Try this: 尝试这个:
<?php
if($_GET['foo'] == '</test>') {
exit();
}
?>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.