Get Paid to Blog About the Things You Love

Free PHP authentication Script

This is a quick and dirty solution. Because of that… it is oh so easy and simple.

Included in this zip file are 6 files:

header.php
include.php
footer.php
loginform.php
checklogin.php
index.php (sample implementation)
style.css (for ugliness!)

It’s very very simple. Any page that the user needs to be logged in to access, include the header.php file at the very beginning of your page, and the footer.php (optional, cleaner code) at the bottom.

You’ll have to manually create the database, and create a table (named “login_users” by default). The table should have two fields: username and password. Create as many users as you want, and feel free to edit and reuse this code as much as you’d like. All you should need to edit to get this working are the variables at the top of the include.php file. I consider this an alpha release, and hope to get some feedback telling me that it works as expected.

Download loginscript_alpha1.zip

Rate this:
2.9
Stumble it!

Post Info

This entry was posted on Sunday, August 31st, 2008 and is filed under development, php. It has 17 views

Comments Feed. | Leave Comment | Leave Trackback.



Previous Post: Why I’m using the new Cuil search engine. »
Next Post: iPhone development won’t happen on the PC »
Most viewed posts


Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.