title: php code causing page to not load
body: <p>I am trying to integrate a simple login for my site with php. i found a script here <a href="http://www.phpfreecode.com/php-Login-system.htm" rel="nofollow">http://www.phpfreecode.com/php-Login-system.htm</a> got everything set up but this php code is cause the page not to load at all</p>
  
  <pre><code>&lt;?php
   if (isset($_COOKIE['user'])) {
   echo "You are logged in: $_COOKIE['user'] Enjoy.";
   } else{ 
   echo "You are not logged in. &lt;a href='register.php'&gt;Register here&lt;/a&gt;";
   ?&gt;
  </code></pre>
  
  <p>I get a server error "The website encountered an error while retrieving (my website) It may be down for maintenance or configured incorrectly" i have php configured on my server, i know this because i have other php files that work on the website. what am i doing wrong? also if someone knows of a better login system im open for suggestions. Thank you.</p>