Why isn't PHP processing my PHP script?
<p>I am trying to include a calendar into my website that I am designing. Not really knowing how to create an event calendar, I chanced upon this calendar that was created using javascript. However, I can't seem to get it working.</p>

<p>Here is the code, in a file with an extension of .html:</p>

<pre><code>&lt;head&gt;  
&lt;script type="text/javascript" src="date/calendar.js"&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
Date
&lt;form action="somewhere.php" method="post"&gt;
    &lt;?php
    //get class into the page
    require_once('date/classes/tc_calendar.php');

    //instantiate class and set properties
    $myCalendar = new tc_calendar("date1");
    $myCalendar-&gt;setDate(date("d"), date("m"), date("Y"));
    $myCalendar-&gt;setSpecificDate(array("2011-04-01", "2011-04-14", "2011-04-25"), 0, "month");

    //output the calendar
    $myCalendar-&gt;writeScript();
    ?&gt;
&lt;/form&gt;
&lt;/body&gt;
</code></pre>

<p></p>

<p>It appears that the PHP in the webpage isn't being processed. What's visible in the browser is:</p>

<blockquote><pre>
Date
setDate(date("d"), date("m"), date("Y")); $myCalendar->setSpecificDate(array("2011-04-01", "2011-04-14", "2011-04-25"), 0, "month"); //output the calendar $myCalendar->writeScript(); ?>
</pre></blockquote>

<p>I do not understand what is wrong here.</p>

<p>I'd appreciate any help.</p>

<p>Cheers,</p>

<p>Josh</p>
