You are viewing the article How to Check PHP Version at Lassho.edu.vn you can quickly access the necessary information in the table of contents of the article below.
wikiHow is a “wiki” site, which means that many of the articles here are written by multiple authors. To create this article, 11 people, some of whom are anonymous, have edited and improved the article over time.
This article has been viewed 21,967 times.
If you are interested in adding new features to your website or are trying to identify a programming error, you may want to check the PHP version your server is using. You can do this by running a simple PHP file on the server. Or, you can also check the version of PHP that is installed on your local computer using the Command Prompt command line interpreter on Windows or the Terminal emulator on the Mac.
Steps
Server
<?php echo 'Current PHP version: ' . phpversion (); ?>
<?php phpinfo (); ?>
- Please refer to the article on how to upload files to your server.
- To view the full data, go to www.yourdomain.com/info.php .
Local PHP version
- Windows – Press ⊞ Win + R and type cmd .
- Mac – Open Terminal from the Utilities folder.
- Linux – Open Terminal from the desktop or by pressing Ctrl + Alt + T .
- Windows, Mac, Linux – php -v
- Find your php.exe file location. It’s usually C:phpphp.exe , but you may have changed it during installation.
- Type set PATH=%PATH%;C:phpphp.exe and press ↵ Enter . Change its actual location if it’s not currently in this location.
- Run php -v again. You will now see the version number.
wikiHow is a “wiki” site, which means that many of the articles here are written by multiple authors. To create this article, 11 people, some of whom are anonymous, have edited and improved the article over time.
This article has been viewed 21,967 times.
If you are interested in adding new features to your website or are trying to identify a programming error, you may want to check the PHP version your server is using. You can do this by running a simple PHP file on the server. Or, you can also check the version of PHP that is installed on your local computer using the Command Prompt command line interpreter on Windows or the Terminal emulator on the Mac.
Thank you for reading this post How to Check PHP Version at Lassho.edu.vn You can comment, see more related articles below and hope to help you with interesting information.
Related Search: