| Home About phpAddDict Screenshots Demo Buy/Order FAQ Documentation Support Service |
п»ї phpAddDict Usage ManualUsage example:
<?php
// Database config
$username = 'yourdatabaseuser';
$password = 'yourdatabasepassword';
$host = 'yourdatabasehost';
$database = 'localhost';
// Uncomment one of the following lines if you don't know your include_path
// For Windows users
//ini_set('include_path','.;./phpadddict');
// For Unix users
ini_set('include_path','.:./phpadddict');
require_once 'phpadddict/phpadddict_Container.php';
// Setting up configuration
$contName = 'PEAR_MDB2';
$contConf = array (
'phptype' => 'mysql',
'prefix' => '',
'username' => $username,
'password' => $password,
'hostspec' => $host,
'database' => $database,
'options' => array(
'debug' => 2,
'persistent' => true,
),
);
// Creating controller
$rc = phpadddict_Container::factory($contName,$contConf);
// Requesting dictionaries
$refs = $rc->getReferences(array('gender','job_function','biz_field'));
//Outputting results
var_dump($refs);
?>
Live Demo
|
| Home About phpAddDict Screenshots Demo Buy/Order FAQ Documentation Support Service Contact Us Press Center |