PHP Classes

File: examples/projectx/config.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/projectx/config.php   Download  
File: examples/projectx/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: 797 bytes
 

Contents

Class file image Download
<?php

$ConfigArray
= array(
'LIB' => '../../',
'APP' => dirname(__FILE__) . '/app/',
'BASE' => 'http://' . $_SERVER['SERVER_NAME'] . '/' . dirname($_SERVER['SCRIPT_NAME']) . '/',

'DB' => array(
   
'phptype' => 'mysql',
   
'hostspec' => '127.0.0.1',
   
'database' => 'skeleton',
   
'username' => 'skeleton',
   
'password' => 'skeleton',
    ),

'TITLE' => 'Project X Collaboration System',
);

function
dump($var=null, $name='', $now=false) {
    static
$output = '';
       
    if (
$now || func_num_args()) {
       
$str = '<div style="clear:both;background:#fff;border:1px solid #ddd;padding:10px;">';
       
$str .= $name . '<pre>' . print_r($var, 1) . '</pre>';
       
$str .= '</div>';
        if (
$now) {
            echo
$str;
        } else {
           
$output .= $str;
        }
    } else {
        echo
$output;
    }
}