Possible Duplicate:
PHP script not running on browser
I'm trying to work with PHP and am very new at it. I'm trying to just test the waters with a simple hello world program. I've tried it like this:
<html>
<body>
<h>Php File</h>
<?php echo "hello world";?>
<p>Did it work?</p>
</body>
</html>
and then opening the html file in my browser (currently chrome). Only the did it work?
part shows in the browser. Not the actual PHP stuff I'm trying to run. Any ideas?
I also tried it with
<html>
<body>
<h>Php File</h>
<form action="helloworld.php" method="post"></form>
<p>Did it work?</p>
</body>
</html>
As an HTML file, and then running the following PHP script in a file called helloworld.php
<html>
<body>
<?php
echo "hello world";
?>
</body>
</html>
I cannot figure out why neither is working. Please help me get past this easy part so I can get to the hard stuff!