Xmas List Maker is a PHP application for making gift lists available in one central location. Lists are stored in text files, so no database is required. A printer-friendly version of the list makes gift shopping easier for everyone!
Xmas List Maker is easy to install. It requires at least PHP 4.3 and a web server. The pages are very basic and should work in any browser. It even works in lynx!
Add a user. Add an item to a user's list. Edit a user's list. That's about it.
Lists are stored in the lists subdirectory. Bob's list would be named Bob.lst. User names must start with a letter, and may contain only letters, numbers or spaces. The application will complain about any violations.
The main page displays all lists. Users may add a single item to a list, or use the list editor. The list editor is required to remove items. No knowledge of HTML is required. No HTML may be inserted into the page.
The printer-friendly page removes empty lists and form controls.
Untar the tarball in your web directory:
tar xzvf xmaslist.tar.gz
Set permissions, making the lists directory world writable:
cd xmaslist
chmod 644 *
chmod 777 lists
Some FTP clients support setting permissions, if shell access is not available.
Point your browser at http://your.server/xmaslist/index.php and start adding users. Share the link with your family, and be prepared to get some good loot this year!
Don't let the caveats scare you -- Xmas List Maker is all about easy. It's easy to install, easy to use, and the PHP code (and the HTML it produces) is well-commented and easy to understand. If anyone discovers any exploits, please let me know. I would also appreciate any feedback on how it works/doesn't work on other systems.
Visit the demo to see what the application looks like. List editing has been disabled for security reasons.
20051202
20041215
20041212
<pre> to display lists 20021202
PHP - The official site for the PHP language is www.php.net. Since Xmas List Maker uses only core functions of PHP, all of the commands appear in the PHP Manual. The manual also has a chapter on security, with many comments that show the pitfalls faced by web developers and administrators when deploying PHP in diverse environments. Please read this chapter for insights on how to correctly secure your scripts in your particular setup.
Using User Authentication - Apache Week has a nice tutorial on using htaccess to password protect files and directories.