title: Parse error: Syntax error, unexpected end of file in my PHP code
body: <p>I got an error:</p>
  
  <pre><code>Parse error: syntax error, unexpected end of file in the line
  </code></pre>
  
  <p>With this code:</p>
  
  <pre><code>&lt;html&gt;
      &lt;?php
          function login()
          {
              // Login function code
          }
          if (login())
      {?&gt;
  
      &lt;h2&gt;Welcome Administrator&lt;/h2&gt;
      &lt;a href=\"upload.php\"&gt;Upload Files&lt;/a&gt;
      &lt;br /&gt;
      &lt;a href=\"points.php\"&gt;Edit Points Tally&lt;/a&gt;
  
      &lt;?php}
          else
          {
              echo "Incorrect login details. Please login";
          }
      ?&gt;
      Some more HTML code
  &lt;/html&gt;
  </code></pre>
  
  <p>What's the problem?</p>