test PHP file does not execute correctly
Posted: 26. July 2012 23:57
hello everyone,
i would be very happy if anyone could supply me with a hint:
i am new to PHP and have begun setting up a development environment on my PC. i installed XAMPP 1.8.0 and wished to test whether PHP is installed and working. i created a test file in the root folder, htdocs and executed it by typing localhost/test.php in the browser url field.
The browser returns the following message:
Parse error: syntax error, unexpected '>' in C:\xampp\htdocs\test.php on line 6
the test code which i entered is a standard test code:
<html>
<head><title>PHP Test</title></head>
<body>
<p>This is an HTML line</p>
<?php
echo “<p>This is a PHP line</p>”;
phpinfo();
?>
</body></html>
any advice would be greatly helpful. thank you.
i would be very happy if anyone could supply me with a hint:
i am new to PHP and have begun setting up a development environment on my PC. i installed XAMPP 1.8.0 and wished to test whether PHP is installed and working. i created a test file in the root folder, htdocs and executed it by typing localhost/test.php in the browser url field.
The browser returns the following message:
Parse error: syntax error, unexpected '>' in C:\xampp\htdocs\test.php on line 6
the test code which i entered is a standard test code:
<html>
<head><title>PHP Test</title></head>
<body>
<p>This is an HTML line</p>
<?php
echo “<p>This is a PHP line</p>”;
phpinfo();
?>
</body></html>
any advice would be greatly helpful. thank you.