title: PHP: Serves blank page on webserver (error 500), but works fine on local (Smarty template engine)
body: <p>I have a website that is built with Smarty 3 template engine in PHP 7, and when uploading it to the web server (Apache), it serves a blank page instead of the constructed html. The website works 100% perfect in the local environment, but the server seems to not like something going on.</p>
  <p>The output I get when using,</p>
  <pre><code>ini_set('display_errors', 1);
  error_reporting(E_ALL + E_NOTICE);
  echo('&lt;br&gt;PHP version:' . phpversion());
  </code></pre>
  <p>is,</p>
  <blockquote>
  <p><strong>PHP version:</strong> <code>5.2.9</code></p>
  <p><strong>Fatal error:</strong> Call to undefined function <code>spl_autoload_register()</code> in <code>/www/mydomain.com/html/assets/inc/vendor/smarty/Autoloader.php</code> on line 81</p>
  </blockquote>
  <p>Now I am positive that the two different versions of PHP aren't causing this issue, as I have uploaded and run other <code>.php</code> files to the server in the past (PHP 7 as well), and they display fine to the client.</p>
  <p>What I am not understanding is how the <code>spl_autoload_register()</code> function is not defined because the function is definitely there on line 81 of <code>Autoloader.php</code>, and it's not like it isn't available to the version of PHP running on the webserver (<a href="http://php.net/manual/en/function.spl-autoload-register.php" rel="nofollow noreferrer">see the docs</a>).</p>
  <p>Is it maybe the <code>/html</code> path?. The <code>/html</code> directory on the webserver is where the <code>index.*</code> file goes along with all the other pages and their assets, so I am not putting them in the wrong spot... but why is the path going from <code>/www/mydomain.com</code> into <code>/html</code>, shouldn't it be going right into <code>/assets</code>?</p>
  <p>Really hope this made sense, thank you in advance!</p>