Well, it's time to start the third contest finally. Sorry it took so long to get it off the ground.
Task: Create a guestbook application.
Goal: Create a functioning guestbook application with the restrictions as outlined below. Violating any restriction will render your entry ineligible to win. Follow them closely.
Restrictions: There are quite a few of them, so heed them well.
All code must be in PHP, version 4.3.x. HTML is allowed of course, but only PHP will be judged. Javascript is NOT allowed, and you will not access any external databases.
Code must be self-contained in ONE php file, called guestbk.php. Data is to be saved in one external text file. That data can be formatted any way you want, but it must be called guestbk.dat, and it must be a text file. This file should be created the first time the program is run.
You must capture the following data:
- Person's name (required)
- email address (not required)
- date/time (required) (When displaying the guestbook,
date must be in this format: August 7, 2003 (Thurs)
- comment (not required)
Form must post to itself to save the data. The form must also be used to display current guestbook entries.
Now the fun part 🙂 You may not use any of the following:
You MUST, however, use each of these at least once:
- die()
- function()
- define() -- must be a valid constant used in your code
Program must run with no errors or notices; "error_reporting(E_ALL);" MUST be one of the first commands of your script.
That's it! Entries should be entered here by attaching a .zip or .txt file to your reply. I will extract or rename your file and run it on my server to test it out.
I will judge entries based on compliance with the above restrictions, cleanliness of code, documentation of your code, speed of execution, and look of the app in the browser as a tiebreaker. Size of the app is not a judging criteria.
Good Luck!
Contest Home Page
[FONT=courier new]Current Entries (in order of submission only):
goldbug: . . . data . . . code . . . guestbook
bad76: . . . . data . . . code . . . guestbook
jeb: . . . . . data . . . code . . . guestbook
drawmack:. . . data . . . code . . . guestbook . . . extra
benkillin: . . data . . . code . . . guestbook
[/FONT]