hi and thanks for looking at my class
1) First thing to do is copy the dictionary folder into your root directory
the class looks for it here.
-
protected $path_to_dictionary= '/dict/dict.dic';//path from \$_SERVER['document_root']
";
the class uses \$_SERVER['document_root'].$path_to_dictionary
so not doing this means either change the code or emailing new passwords will hang the script.
2) then goto the database.inc file and set up your connection
there is two sets for my own use but i have left them in for any who can use.
- $host = "localhost"; //Database host.
- $user = "root"; //Database username.
- $pass = "password"; //Database password.
- $dbase = "mydatabase"; //Database.
3) now create a table in the database you named above with the following structure';
-- Table structure for table `members`
--
CREATE TABLE IF NOT EXISTS `members` (
`memberID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`memberName` char(20) NOT NULL,
`password` varchar(64) NOT NULL,
`email` varchar(128) NOT NULL,
PRIMARY KEY (`memberID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
This will carry on with a demo login bar + forms /msgs once database and directorys set up correctly
it will also explain some simple lines of code to add the bar / funtions to your script
username =
user ID =