PHP script works on one server, gives me an Internal Server Error 500 on another
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12863897/php-call-class-in-class-returns-error500">PHP call class in class returns error:500</a>  </p>
</blockquote>



<p>I have code that looks somewhat like this:</p>

<pre><code>&lt;?php
include 'payTable.php';
session_start(); 

...

if ($_SESSION['fieldTen'] &gt; 30)
{
    $payTable = 'payTable';
    $payTable::run();
}

?&gt;
</code></pre>

<p>My permissions are set to 0644, so I don't think that's the issue, but I'm getting strange behavior on the server that I'm not getting in the local directory using XAMP. </p>

<p>Every time I try to load the page with this code on it, I get the "Internal Server Error: 500" error. </p>

<p>Can anyone tell me if there's something obviously wrong here? Something I'm missing.</p>

<p>I tried simply removing the PHP from this file and that causes the HTML part of it to appear without problems.</p>
