title: Server Error 500 in php page
body: <p>I have a problem with a PHP page returning a server error 500.  This only happens in a single page. I spoke to the host and they told me that I have an issue in my code.</p>
  
  <p>This is the content of the file exhibiting the error</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    &lt;?php
  define('APP_URL', 'http://mysit.com/');
  define('APP_ID', 'xxxxx');
  define('APP_SECRET', 'xxxxx');
  ?&gt;&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
       &lt;meta charset="utf-8"&gt;
       &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
       &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
       &lt;!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --&gt;
       &lt;title&gt;test&lt;/title&gt;
       &lt;meta property="og:title" content="Which of your friends are secretly smoking?" /&gt;
    &lt;meta property="og:url" content="&lt;?php echo APP_URL . 'result.php?id=&lt;?php echo trim(htmlentities($_GET['id']))'; ?&gt;"/&gt;
    &lt;meta property="og:description" content="test" /&gt;
    &lt;meta property="og:image" content="&lt;?php echo APP_URL . 'converted/&lt;?php echo $_GET['id']'; ?&gt;.jpg" /&gt;
    &lt;meta property="fb:app_id" content="&lt;?php echo APP_ID; ?&gt;" /&gt;
    &lt;meta name="medium" content="image" /&gt;
       
     &lt;/head&gt;
     &lt;body&gt;
      &lt;a href="./"&gt;test&lt;/a&gt; 
  
     &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>