Help Fix a bug - Unexpected T_STRING
Posted
by thecoshman
on Stack Overflow
See other posts from Stack Overflow
or by thecoshman
Published on 2010-04-16T12:52:33Z
Indexed on
2010/04/16
12:53 UTC
Read the original article
Hit count: 192
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 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.
© Stack Overflow or respective owner