开发者

Help Fix a bug - Unexpected T_STRING

So I have just rebuilt my server, just on local network. Stick my site back on it, try to run the code, and I get a anice T_STRING error. This is all very 开发者_Python百科strange, as I have not changed the code :S

<?php
$window_ID = -1;
if(isset($_POST["window_ID"]) AND $_POST["window_ID"] != null){
  $window_ID = trim($_POST["window_ID"]);
}
?>

This is the start of the file, apter this rather loverly snipit of PHP the rest is just XMl, yet on line 6 appertnlty there is an unexpected T_STRING, which is strange considering all that is on that line is the ?>, then the XML starts up...

Any one got any ideas what has gone wrong here? Any chance it ould be magic quotes? I had turned it of before, but I want to now update my code to check for the magic quotes and avoid its stupid actions.


You might have short_open_tags enabled. The opening tag for xml <? is probably invoking the PHP interpreter and subsequently throwing this error when it sees the XML content.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜