title: How to have PHP display errors? (I've added ini_set and error_reporting, but just gives 500 on errors)
body: <p>So, I don't really have any errors in my current web page, but I want to be able to see an error when they pop up, instead of the HTTP 500 error page. I googled around a bit and thought adding these two lines would fix everything.</p>
  
  <pre><code>ini_set('display_errors', 'On');
  error_reporting(E_ALL);
  </code></pre>
  
  <p>NOTE: I don't have access to the php.ini file, as I'm using my school account's server.</p>
  
  <p>So I introduced a bug (no semicolon after $buggy) like so at the top of my page: </p>
  
  <pre><code>&lt;?php 
  ini_set('display_errors', 'On');
  error_reporting(E_ALL);
  $buggy
  
  $x = 4 + 2;
  ...
  </code></pre>
  
  <p>However, I just get a Server error:</p>
  
  <p>"The website encountered an error while retrieving <a href="http://mywebpage.com/">http://mywebpage.com/</a>. It may be down for maintenance or configured incorrectly."</p>
  
  <p>Any ideas?</p>
  
  <p>EDIT:</p>
  
  <p>I've reconfigured my code:</p>
  
  <pre><code>&lt;?php 
  include_once 'database/errorSettings.php';
  ?&gt;
  &lt;?php 
  
  $buggy // whoops
  $x = 4 + 2;
  ...
  </code></pre>
  
  <p>errorSettings.php is the following:</p>
  
  <pre><code>&lt;?php
      ini_set('display_errors', 'On');
      error_reporting(E_ALL);
  ?&gt;
  </code></pre>
  
  <p>But it still doesn't work... wrong way to reconfigure?</p>