Connectiong to SkyDB
- Include the file of SkyDB:
include 'skydb.php';
- Creates an instance of the class with:
$db = new skydb;
- Set chmod (it is better to hard write it in the class)
$db->conf['chmod']=0777;
chmod that will be given to any new file or folder created - Set path to databases
$db->conf['dbpath']='/root/usr/domain.com/www/database/';
- Set a database if needed (don't have to)
$db->database='mydb';
this will save the data to'/root/usr/domain.com/www/database/mydb/tablename/
or wihout the 'mydb/' folder if no database was set. - Now you can use the functions of SkyDB
optional settings: