O'Reilly logo

CouchDB and PHP Web Development Beginner's Guide by Tim Juravich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — checking your PHP version

We are going to check that PHP is working on your computer by accessing it with Terminal.

  1. Open Terminal.
  2. Run the following command for PHP to return its version:
    php -v
    
    
  3. Terminal will respond with something similar to the following:
    Time for action — checking your PHP version

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required