Hi All,
I am new to this php scripting.I did a very simple script with variables.When I ran that php script from, the system is not recognizing the variables.It is giving a syntax error.With out variables it is working fine. One more thing is the system is not even recognizing functions(like phpinfo()).Here is the code.
<title>This is my first PHP</title>
<body>
$name="Bobby"
$age=3
<? echo "The name of the person is" $name; ?>
<? echo "The name of the person is" $age ;?>
</body>
I am getting the following error.
Parse error: parse error, expecting ','' or';'' in c:\program files\apache group\apache\htdocs\detail.php on line 6
If anybody has seen the same problem.Please help me.
TXS.
sankar