PHP Security Assignment
There is a file in my web/books directory. You can either use it in place or copy it and use it. To use it in place:
mysql databasename < /usr/users3/grovesr/web/books/createbauth.sql
This also creates two entries one with name=user and pass=pass, and one with name=testuser and pass=password(test123). Look at the database and see what actually gets inserted into these two entries.
http.php
implements the Basic authentication scheme (which is used to make the .htaccess method work) in PHP code. The secretdb.php file implements a simple database-based user/password scheme. Copy both of these files into your web directory. Copy the db.inc file from my protected directory into your own protected directory. Use a browser to run both of these files and observe how they work. You probably wont be able to get secretdb.php to work with user=user and password=pass. Why not?