- CouchDB and PHP Web Development Beginner’s Guide
- Tim Juravich
- 132字
- 2025-04-04 23:15:59
Time for action — checking your PHP version
We are going to check that PHP is working on your computer by accessing it with Terminal.
- Open Terminal.
- Run the following command for PHP to return its version:
php -v
- Terminal will respond with something similar to the following:
What just happened?
We used Terminal to ensure that we had PHP running correctly on our machine. Not only did we check to make sure that PHP was accessible, but we also asked for its version. Your version may differ slightly from mine, but it only matters that your version is PHP 5.3 or higher.
Note
If your version is lower than PHP 5.3 or you were unable to get PHP to respond, you can install or upgrade by looking at PHP's manual: http://php.net/manual/en/install.macosx.php.