PHP Classes

File: examples/config.php

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

Contents

Class file image Download
<?php

ini_set
('error_reporting', E_ALL ^E_NOTICE);
#ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . dirname(__FILE__) . '/../');
include dirname(__FILE__) . '/../A/autoload.php';

$config = parse_ini_file ('config.ini', true);

function
dump($var, $name='') {
    echo
$name . '<pre>' . print_r($var, true) . '</pre>';
}

function
d($var, $name='') {
    echo
'<div style="padding: 10px; margin: 10px; background-color: #eee;">';
    echo
'<strong>' . ($name?'var_dump: '.$name:'') . '</strong><pre>';
   
var_dump($var);
    echo
'</pre></div>';
}

function
p($var, $name='') {
    echo
'<div style="padding: 10px; margin: 10px; background-color: #eee;">';
    echo
'<strong>' . ($name?'var_dump: '.$name:'') . '</strong><pre>';
   
print_r($var, $true);
    echo
'</pre></div>';
}