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 our first file: index.php

The first file we'll create is a file called index.php. This file will handle all of the requests to our application and eventually will be the main application controller that will talk to Bones.

  1. Create index.php in the working directory, and add the following text:
    <?php echo 'Welcome to Verge'; ?>
    
  2. Open your browser, and go to the url: http://localhost/verge/.
  3. The index.php file will display the following words:
    Welcome to Verge
    
    

What just happened?

We created a simple PHP file called index.php that simply returns text to us at this point. We can access this file only if we directly go to http://localhost/verge/ or http://localhost/verge/index.php. However, our goal is that index.php will be hit ...

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