-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
CouchDB and PHP Web Development Beginner's Guide
By :
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
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 for almost every request inside of our working directory (with the exception being our public files). In order for us to do this, we need to add a .htaccess file that will allow us to use URL rewriting.
.htaccess files...
Change the font size
Change margin width
Change background colour