PHP Classes

File: init/global.php

Recommend this page to a friend!
  Classes of Boss Ibrahim Mussa   wepesi PHP Pagination Library   init/global.php   Download  
File: init/global.php
Role: Example script
Content type: text/plain
Description: Example script
Class: wepesi PHP Pagination Library
Generate pagination for listing of query results
Author: By
Last change:
Date: 11 months ago
Size: 463 bytes


Class file image Download
= (object) parse_ini_file("./init/config.ini", true);
$db_conf = (object)$ini_array->db_conf;

// database configuration setup
define("HOST", $db_conf->host);
define("DATABASE", $db_conf->database);
define("USER", $db_conf->user);
define("PASSWORD", $db_conf->password);

//web root configaration
define('WEB_ROOT', str_replace('index.php', '', $_SERVER['SCRIPT_NAME']));
define('ROOT', str_replace('index.php', '', $_SERVER['SCRIPT_FILENAME']));