<p>Different versions of PHP may have different default settings, and in the case of newer versions might have new functions. If you can&#39;t get something to work, and think it might be because you have the wrong version of PHP there is a simple way to check. Simply running the <a href="https://www.thoughtco.com/php-code-showing-instead-of-running-2694209" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="1">phpinfo () function</a> will not only tell you your PHP version but an abundance of information about all your PHP settings. Here is an example:</p><pre><code>&lt;?php phpinfo() ?&gt;</code></pre> Just put that single line of code in a PHP file, and run it on your server. That&#39;s it! By <a href="https://www.thoughtco.com/uploading-files-with-php-2693794" data-inlink="_5ETwiXaClgozp0s7cod8g&#61;&#61;" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="2">running the file</a> you should have all of the PHP information you need.