Featured Post

Research Paper On Leukemia Health And Social Care Essay Free Essays

I chose to make my examination paper on Leukemia on the grounds that my uncle who lived in Bend, OR discovered that he had Leukemia. This kn...

Tuesday, January 7, 2020

How to Tell Which Version of PHP You Have

If you cant get something to work and think it might  be because you have the wrong version of PHP, theres a really simple way to check the current version.   Different versions of PHP may have different default settings, and in the case of newer versions, might have new functions. If a PHP tutorial is giving instructions for a particular version of PHP, its important to understand how to check the version you have installed. How to Check the PHP Version Running a simple PHP file will not only tell you your PHP version but an abundance of information about all your PHP settings. Just put this single line of PHP code in a blank text file and open it on the server: ?php phpinfo() ? Below is how to check the locally installed version of PHP. You can run this in Command Prompt in Windows or Terminal for Linux/macOS. php -v Heres an example output: PHP 5.6.35 (cli) (built: Mar 29 2018 14:27:15)Copyright (c) 1997-2016 The PHP GroupZend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies Is the PHP Version Not Showing in Windows? Given that you actually are running PHP on your web server, the most common reason for the version of PHP not showing up is if the path to PHP is not set up with Windows. You might see the error like this if the correct environment variable isnt  configured: ‘php.exe’ is not recognized as an internal or external command, operable program or batch file. In a Command Prompt, type the following command, where the path after C: is the path to PHP (yours may be different): set PATH%PATH%;C:\php\php.exe

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.