PHP Classes

File: examples/basic_app/config.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/basic_app/config.php   Download  
File: examples/basic_app/config.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 772 bytes
 

Contents

Class file image Download
<?php
$ConfigArray
= array(
// Site specific settings
'DBDSN' => array(
   
'phptype' => 'mysql',
   
'hostspec' => 'localhost',
   
'database' => 'xxxx',
   
'username' => 'xxxx',
   
'password' => 'xxxx',
    ),

'LIB' => '../../',
'APP' => './app/',
'BASE' => 'http://www.mydomain.com/',
);

ini_set('error_reporting', E_ALL);
#ini_set('include_path', ini_get('include_path') .
# PATH_SEPARATOR . $ConfigArray['APP'] .
# PATH_SEPARATOR . '../../' // this only needed for these examples
# );

function dump($var, $name='') {
    if (
is_array($var) || is_object($var)) {
        echo
'<pre style="color:black;">' . $name . (isset($var) ? print_r($var, true) : '') . '</pre>';
    } else {
        echo
"<span style=\"color:black;\">$name$var<br/><span>";
    }
}