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: 1 year ago
Size: 463 bytes
 

Contents

Class file image Download
<?php
$ini_array
= (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']));