The line
header("Location: View.php");
looks fine. But parsing errors may be also sourced by errors on previous lines. So inspect those or edit your question to show them. Common errors are a missing semicolon at the line end and unterminated string literals (missing the terminating single or double quote character or using the wrong one). That seems to apply here because
T_STRING
indicates a problem with a string literal.
This code should for example generate a similar error:
echo "Using header() function;
header("Location: View.php");