Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint:
PHP Anthology, Vol 2, Chapter 1
Feb 02, 2004 @ 13:30:32

In the continuation of his series from SitePoint this morning, they have posted the latest PHP Anthology by Harry Fuecks - The PHP Anthology Volume 2, Chapter 1 - Access Control.

One of the side effects of building your site with PHP, as opposed to plain HTML, is that you'll be building dynamic Web applications rather than static Web pages. Your site will let you "do" things that weren't possible with plain HTML. But how can you ensure that only you, or those to whom you give permission, are able to "do things," and prevent the Internet's raging hordes from running riot on your site?

In this new piece he shows you how to build a simple authentication system (over and SSL connection) and integrate all of the scripts together. The sample code includes: a signup form (complete with a "image keyword" for security), a password changer, a permissions system for all users, and storing all of the data for these sessions in MySQL.

This is definitely worth checking out, especially if your relatively new to the game and are needing a login setup for your site (and yes, I know you're out there!)

tagged:

Link:


Trending Topics: