SkySimple

Easy To Use Software
  • English (en)
  • Русский (ru)
  • SimpleControl CMS
  • SkyDB Class
    • Functions
    • Connection
    • Creating Schema
    • Concept of Work
  • Contact

Connectiong to SkyDB

  • Include the file of SkyDB:
    include 'skydb.php';
  • Creates an instance of the class with:
    $db = new skydb;

  • optional settings:
  • 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
Powered by SimpleControl v0.1.1 - © 2008 SkySimple
Created in 0.002042