Author Topic

rohit anand

Saturday 26 July 2008 8:13:24 am

Comment10339

hi me a beginner in php

I just configured my apache2.2.9 and php5.2.6. My phpinfo wrks 5n. but wheni add any php statement other than phpinfo(). It gives error. This my first test program and got struck into this.

Parse error: syntax error, unexpected ',' in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test.php on line 7

the code is my first program:

<html>
<head>
<title>Hello in PHP</title>
</head>
<body>
<h1>Hello in PHP</h1>
<? print “Hello, world!”;
?>
</body>
</html>

please help me. I am trying to learn php programming myself.