PHP won't work in my browser?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/7168180/php-script-not-running-on-browser">PHP script not running on browser</a>  </p>
</blockquote>



<p>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:</p>

<pre><code>&lt;html&gt;
&lt;body&gt;

&lt;h&gt;Php File&lt;/h&gt;

&lt;?php echo "hello world";?&gt;

&lt;p&gt;Did it work?&lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>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. Ideas?</p>

<p>I also tried it with </p>

<pre><code>&lt;html&gt;
&lt;body&gt;

&lt;h&gt;Php File&lt;/h&gt;

&lt;form action="helloworld.php" method="post"&gt;&lt;/form&gt;

&lt;p&gt;Did it work?&lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>As an html file, and then running the following php script in a file called helloworld.php</p>

<pre><code>&lt;html&gt;
&lt;body&gt;

&lt;?php
echo "hello world";
?&gt;

&lt;/body&gt;
&lt;/html&gt;  
</code></pre>

<p>I cannot figure out why neither is working. Please help me get past this easy part so I can get to the hard stuff!</p>
