WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Mobile Dev World

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Full membership authentication system.
Categories : Authentication, MySQL, PHP, Databases Update Picture
Simon Booth
Date : Jan 24th 1999
Grade : 3 of 5 (graded 19 times)
Viewed : 62361
File : auth
Images : No Images for this code example.
Search : More code by Simon Booth
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

I'll apologise in advance for this, it does equire tweaks and the suplied
version is $card_required.

I wanted this a little time ago and I've have killed for this much code.

It's not my usual policy to purposely break things but this is (but only ever
so slightly). Owing to the bature of the system I think you'll understand why
...

You'll need to tweak this a little.

+REQUIRED

Apache recent-ish
MySQL
mod_auth_mysql

+OPTIONAL

mod_ssleay

Before you start with this I'll point out that it's the not quite finished
version (see below). To grab the mistakes I made when adding stuff to it for
the customer which broke the non-payment system set your debug to 15 to catch
them all.
I've fixed this stuff (www.samlearning.co.uk/auth).

If you ain't got the time/inclination to fix the bugged version drop me a line
and I'll happily supply the non-bugged version (once I've removed essential
information)

There are something like 21 - odd files in the attach.

dbman.phtml - creates the dbs etc. The supplied default won't do anything (even
on my site). You'll need to ctrate a MySQL acct with create permissions to do
anything useful with this page.
tdefs.inc - change it to reflect your own site setup. Just have a look and
you'll see what I mean.
.htaccess - modify the sucker to reflect your choices.

Oh, yeah, you proibably ain't got SSL so make sure you either fix the code or
remove the S from the HTTP bit.

Please note that for my own site's security this is not quite the last version
of the system. $req_card dies a (ok, it's a bug - I don't want to give the
clean code out - see below) little and the urls refer to my home PC. It should
take anyone with more than a micro-gram of brain next to no time to slot in.

Again, aplogies for not supplying the complete answer - I've got to be careful
with things like auth systems (I'm sure you understand). If you wanna see it in
it's full glory try http://www.talksex.co.uk/ follow the spash and take the 2nd
link.

Finally (yup, we got there) you need a directory entry in httpd.conf with an
options auth allowance or you wont get nothing happening (it'll write the stuff
to the db but you wont get auth on it)

I think I've covered it all here. Drop me a line if you get stuck and I'll give
you a hand. I do admit (quite freely) that this ain't as simple as it should be.

I don't always write deliberately broken code. Try a search on whois and you'll
see what I mean (drop-in domain finder)



PHP4 AND MySQL Authentication
Categories : PHP, MySQL, Authentication, Databases
complete, simple, working example of a login screen/system using php functions, cookies, and a mysql database for begginers.
Categories : Authentication, Complete Programs, PHP, MySQL, Databases
bookmarker - PHP, PHPLIB, MySQL WWW based bookmark manager
Categories : MySQL, PHP, MySQL, Complete Programs, Databases
Authorize Me! An authentication script.
Categories : MySQL, Databases, Authentication, PHP
This program allows you to upload an ODBC ressource - i.e. an MS-Access database to a MySQL server.
Categories : Databases, MySQL, Complete Programs, PHP, Databases
SQL / PHP based Integrated Authentication
Categories : PHP, Authentication, Databases, MySQL
Implementing a "Members ONLY" area
Categories : PHP, MySQL, Databases, Authentication
PHP Object Example of the Perl DBI with MySQL
Categories : PHP, PHP Classes, MySQL, Databases, Perl
AJAX Data Grid System using php and mysql. A complete login system with the ability to display data in a grid using ajax. Add , update and delete the records without reloading the page.
Categories : PHP, AJAX, Databases, MySQL, Java Script
Identify and log search engine access (spiders, robots, etc.) to a page.
Categories : HTTP, Environment Variables, PHP, MySQL, Databases
Visits-tracking
Categories : PHP, Databases, MySQL, Errors and Logging, Functions
A simple script to count and report hits and the last modification time of an HTML page. Requires MySQL support (other DBs should work too, except possibly mSQL).
Categories : HTTP, MySQL, PHP, Databases
Finds the median in an array of numbers - Can be used with a MySql database column read into an array
Categories : PHP, Arrays, Databases, MySQL
Simple function to return the number of days in a time span between 2 given dates.
Categories : PHP, Date Time, MySQL, Databases
Solution to those 'tell-a-friend' type email issues
Categories : PHP, Email, Databases, MySQL
 cipson cit wrote : 161
very good site
lot of informations 
please organize these informations in more user friendly
 
 angus claydon wrote :782
...just tried the www.talksex.co.uk link but the mysql connection didn`t work.

root@localhost ... how safe is that ?

You have done well to get so far.. keep working at it man