I get a parse error when I run my PHP script

Issue:

I wrote a nice little PHP script and put it on my Auburn web space, but when I accessed it in my browser, I got a "parse error."

Solution:

Parse errors generally result from missing braces or missing semicolons. For example, this code:

<?
if ($i < $some_count) {
echo "inside the loop";
}
$output_path = "/home/home8/user name"
if ($j > $some_val) {
$output_text = "hello world";
}
?>

will cause the message Parse error, unexpected T_IF

Notice that although the first loop is closed, the next statement is not terminated, so the parser cannot recognize the second if statement. What's missing is a semicolon at the end of the $output_path... statement.