Montana Tech of The University of Montana
Computer Science & Software Engineering

CSCI 470
Web Science
Spring 2012


Assignment #2
Due: start of class, Monday 9/30.

You will be adding PHP server-side scriping to your web server. You will be implementing and benchmarking a PHP-version of the file-based name/value pair program.


Part 1. Install, configure, and test PHP on your Apache server. Part 2. Create a file-based name/value pair storing program just like in Assignment #1. The PHP script will store the pairs in a files in the htdocs directory. You will need to set the permissions of this folder as in Assignment #1. Part 3. Benchmark your CGI program using the Apache benchmark utility ab. The utility is located in /usr/local/apache2/bin. Type ab with no arguments to get a list of its features.

Complete this readme.txt file with the requests per second you measure using ab connecting locally to your server (that is using the base URL http://127.0.0.1). This time you only need to do the read tests with 1000 repeated requests.
Submission. I will be testing your application by logging into your sever, starting Apache and then going to your get.php and set.php pages. Submit the files lookup.php, set.php, get.php, header.php, footer.php and readme.txt to the Moodle dropbox. The Moodle timestamp is the completion time for the assignment.

Page last updated: August 16, 2012.  Copyright © 2011 by Keith Vertanen.