Gjm wrote:
I am 100% sure that there is no syntactical errors in the php code. But when I access the page using “http://localhost/test.php”, the following error showed Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /var/www/test.php on line 2
One of these statements must be false, I suspect it is the first one. The double quote characters around your string do not look correct, you should probably replace them with proper " characters.