The following describes how to install PHP-Register for the first time. The process is simple and should take just a few minutes.
The files are supplied in .zip format. After unzipping the files you will have a folder called 'phpregister' containing a number of files and folders. It is usual to copy the whole folder on to your web server in which case the site will be located at http://www.yoursitename.com/phpregister/.
If you do create a folder called 'phpregister' on your web server, remember to use lower case as Linux is case sensitive.
Here is a quick summary of the 'phpregister' folders :
/admin - code to administer the application
/classes - object classes used in the application
/functions - miscellaneous functions
/images - graphics
Click here for a tutorial.
Click here for a tutorial
Click here for a tutorial.
Create a new empty database with an appropriate name (e.g. phpregister).
If you are using a hosting company, then you will probably be given a control panel to access your databases system. For mySQL this is usually phpMyAdmin which allows you to administer the database via a web browser.
Quite often hosting companies will prefix the name of the database with your login name. So when you enter track, it becomes paul_track for example.
You can install into an existing database if you wish. The table names are all prefixed by reg_. First check that there are no other tables in your database that start with track_ to make sure that there are no name clashes.
Create a user (e.g. reguser) that has access to that database and that database only.
If you are using a hosting company, there will probably be an administration page which will allow you to create database users, define their permissions and add the user to your database.
Quite often hosting companies will prefix the user name with your login name. So when you enter reguser, it becomes paul_reguser for example.
In the first instance, you need to make sure that the user has permissions which include CREATE privileges because the first script that you run will be creating tables in the database. Normally you will select the All Privileges option for this.
The install.php page should be accessible at :
When you display this in your web browser, it will ask for host name, database
name, username, password and table prefix.
The above image shows the default display.
The host name will usually be localhost, the database name will be whatever you have already created, usually phpregister. Enter in a user name and password for a user who has table creation privileges.
Click on 'Create' and the script will display a list, which should all be green to indicate success. Any failures will be indicated in red.
If all are green, then all tables have been created.
The config.php file contains the database connection username / password for the application.
Edit the config.php file with a text editor such as Notepad. Do not put any spaces, blank lines or other text after the last ?> symbol or before the first <?php symbol.
You need to enter :
database host name (usually localhost, but see your hosting documentation for this)
Note that the database name, and database username may have been given a prefix by the host system.
The application should now be working correctly and you can go to the admin pages using :
The default login is user : admin, password : admin
You should change your password and user name as soon as possible via the 'change password' page.
The form is displayed when your run the index.php file in your web browser
So the URL of this page would be http://www.yoursitename.com/phpregister/index.php assuming that the application has been installed in the folder phpregister and the name of your site is www.yoursitename.com
NOTE that you may have to edit the index.php file to point to the correct form id. To do that, open index.php with a text editor and you should find
the following lines near the top of the file:
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //Configuration $form_id = 1; //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Change the form_id as required. The number has to match the id of the form that you have created in the admin area.