PHP Classes

File: examples/blog/config.php

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

Contents

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

'LIB' => '../../',
'APP' => dirname($_SERVER["SCRIPT_FILENAME"]) . '/app/',
'BASE' => 'http://' . $_SERVER["SERVER_NAME"]. dirname($_SERVER['SCRIPT_NAME']) . '/',
);

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;
    }
}