PHP newbie, what isn't correct here?
<p>I don't know what question I should be asking. I'm looking for "how should PHP documents start" and similar but I'm not turning up anything helpful. I have the following file set in my MAMP "htdocs" folder which should allow me access to it through localhost. However, whenever I load it in chrome I get server error HTTP 500. If I delete the whole thing I get no error. If I load just the first php block I still get the error. What questions do I need to be asking?</p>

<p>Edit for clarity. Even without the debug block, the code doesn't load. Even with JUST the debug block the code doesn't load</p>

<p>Edit: constantly updating code with fixes</p>

<pre><code>&lt;?php 
ini_set('display_errors', 'On');
error_reporting(E_ALL | E_STRICT);
?&gt;

&lt;?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $text = $_POST["email_text"];
    include "etext.php";
    //Run etext

    $output_file_path = "#"; //set by running etext

    header("Location: index.php?status=submitted");
    exit;
}

?&gt;

&lt;h1&gt;Etext Email Converter&lt;/h1&gt;

&lt;?php
if (isset($_GET["status"]) AND $_GET["status"] == "submitted") { ?&gt;
    &lt;p&gt; File located at: &lt;?php echo $output_file_path; ?&gt; &lt;/p&gt;&lt;br&gt;
    &lt;a href=&lt;?php echo $output_file_path; }?&gt; &gt;Click Here to Access&lt;/a&gt;
&lt;?php
else { ?&gt;
    &lt;form method="POST" action="index.php"&gt;
        &lt;textArea rows="30" cols="40"&gt;&lt;/textArea&gt;
        &lt;input type="submit" value="Submit"&gt;

    &lt;/form&gt;
&lt;?php } ?&gt;
</code></pre>
