Login |  Register 
This has got to be one of the most frequently updated PHP sites, keep up the good work...

Getting started with the Rocks PHP Library

First of all you need to extract the Rocks Library in a folder of your choice for instance "Rocks".

Next you will need to create the configuration file. The default name for this is config.ini and should be located in the same directory as where your classes are used. Note that you can use an alternative configuration name, although you will have to provide this when using it in classes etc.

The contents of a typical config file are shown below.

Username = "root"
Password = "pa55w0rd"
Hostname = "localhost"
DatabaseName = "mydatabase"
DatabaseType = "mysql"
Debug = false;

Configuration fields

Most of the configuration options are self explanetary. However here in detail is an explanation of all the fields within the configuration file.

Remember don't delete the [Database] section of the configuration file!

After the configuration settings to your database are complete you are now ready to include Rocks in your PHP code.

Comments to date: 3. Page 1 of 1. Average Rating:
Dash   1:59pm on Monday, May 13th, 2013 
That's a smart way of looikng at the world.
DSkinner1983   6:16am on Friday, May 29th, 2009
It currently supports multiple databases by having more than one config file. So one for each database, then when you create a RocksDBO or RocksDatabase class you can pass the config file required for that database to its constructor.
Rulatir   12:32am on Friday, May 29th, 2009
Multiple databases? Is it supported? How?

security image
Written by Dominic Skinner
Last Updated: 2011-10-25 16:00:38