I newly installed Wamp 3.0.6 today and created user and pass to phpmyadmin which has all privileges.
I tested the installation with a simple PHP script:
<?php echo "hello"; ?>
and all seemed well. However when introducing braces (}
or {
), I get a syntax error:
<?php
$a = 1;
if ($a > 1){
echo "There's more than 1";
}
?>
Parse error: syntax error, unexpected 'echo' (T_ECHO) in C:\wamp64\www\tickets\test.php on line 4.
This error is occurring anytime a brace is used. Since this is syntactically valid PHP (as confirmed by 3v4l.org), I suspect something may be wrong with my wamp-server installation.
Any idea what's wrong here?
I have just now uninstalled and installed Wamp again. And the same thing.
I can do a simple or
Any help would be much appreciated as this is getting on my nerves.