Help!
I am a newbie just trying to get my first php file to work on the XAMPP apache server.
I have the apache turned on from the XAMPP control panel, and the index page along with every other php page included with XAMPP works fine.
It just doesn't work when ever I make my own php file, even though I have it stored in the htdocs files of XAMPP like I'm supposed to and bringing the page up on the browser with the URL http://localhost/helloworld.php.
The helloworld.php file is just as following:
<html>
<head><title>Hello World</title></head>
<body>
<?php
echo "Hello World!";
?>
</body>
</html>
The page displays nothing unless I insert a <p> just after the " in the echo statement changing it to "<p>Hello World!"; in which case only the html is parced for the <p> tag, and I get displayed Hello World!;?> on the browser page.
A color coded source page for Motzilla shows that every thing between the <?php tag and th <p> tag is interpreted as being one tag yet not recognized as any valid html tag. Also it recognized everything between the <?php and ?> the same way.
This is most puzzling for a newbie, and it's like getting stuck at the starting line.
Please help.
jml