- Code: Select all
<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>
I view this page in my browser and the display is...
This is an HTML line
This is a PHP line
"; phpinfo();?>
When I installed XAMPP everything seamed to be okay. I got green lights for apache and mysql. I clicked thru the XAMPP welcome/example pages. The one that show the phpinfo() displays fine.
However, when I create my own test.php file with this code and put it into the htdocs directory and access it thru my brownser, something isn't right. I am not getting the long table of php info.
Any suggestions?
thanks!