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
PHP Web Logs (BLogs)
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
Submit Site
Forex Trading Online forex trading platform

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 17 times)
Viewed : 58072
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)



Authorize Me! An authentication script.
Categories : MySQL, Databases, Authentication, PHP
Implementing a "Members ONLY" area
Categories : PHP, MySQL, Databases, Authentication
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
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
bookmarker - PHP, PHPLIB, MySQL WWW based bookmark manager
Categories : MySQL, PHP, MySQL, Complete Programs, Databases
PHP4 AND MySQL Authentication
Categories : PHP, MySQL, Authentication, Databases
Accepts a database & hostname from a user and then HTTP username and password. Uses this to connect to a MySQL database. Produces a form based on the tables it finds there to allow the user to do SELECTs, INSERTs, and DELETEs.
Categories : Databases, PHP, MySQL, Complete Programs
Cut your MySQL Connections to 1 line of code
Categories : PHP, Beginner Guides, Databases, MySQL
simple script to send emails via a html-form to different users
Categories : Email, MySQL, PHP, Databases
Point and Click Interface ala MS Access for creating SQL statements.
Categories : MySQL, Complete Programs, General SQL, PHP, Databases
Displaying records of database in more than one page (paging)
Categories : Databases, MySQL, PHP
html split bar used to split in multiple pages a database result
Categories : HTML and PHP, Databases, MySQL, PHP
Tropicalm Genetree Family (MySQL based family tree)
Categories : PHP, Interfaces, Databases, MySQL, Complete Programs
Report Generation in Microsoft Access from a MYSQL database
Categories : PHP, MySQL, Databases, MS Access
Automatically printing the contents of an sql table in MySQL.
Categories : MySQL, PHP, HTML and PHP, Databases
 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