Saturday, July 26, 2008

Week 2 - Working on the PHP

The second week of the project was spent working on the PHP programming for the website.

Work done, week 2, 19-25 July;

signup.php - This page allows users to sign up to the site, choosing a username and password.

confirm.php - This page is used to activate users membership to the site, throught a link that is emailed to them.

sessions.php - This page is inlcuded on pages where the user is required to be logged in. It checks if the user is logged on and if not redirects them to the login page, otherwise it allows them to continue.

login.php - This is where members login to there accounts.

logout.php - This is where logged in members can log out.

highscores.php - This page displays the highscores list for the game. It only shows a limited amount of scores per page and splits the rest onto other pages.

The PHP programming will be finished hopefully on Monday the 28th of July, which is ahead of schedule of the currently set date of 1st August.

There were no problems faced this week.

The only new knowledge gained this week is that PHP if and else statements do not required '{' and '}' when only being a single line of actions. I do not like this though as it means that the code is inconsistent in its look so I have put them in anyway.

Will

No comments: