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 — creating a quick info page

We are going to double-check that Apache can render PHP scripts by quickly creating a phpinfo page that will display a wide array of data about your configuration.

  1. Open your text editor.
  2. Create a new file that contains the following code:
    <?php phpinfo(); ?>
    
  3. Save the file with the name, info.php, and save that file in the following location: /Library/WebServer/Documents/info.php.
  4. Open your browser.
  5. Navigate your browser to http://localhost/info.php.
  6. Your browser will display the following page:
    Time for action — creating a quick info page

What just happened?

We used our text editor to create a file called info.php that contained a special PHP function ...

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