PHP Classes

File: app/config/config.php

Recommend this page to a friend!
  Classes of Kabir Hossain   Sage   app/config/config.php   Download  
File: app/config/config.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Sage
Demo application of Web development framework
Author: By
Last change:
Date: 1 year ago
Size: 742 bytes
 

Contents

Class file image Download
<?php

/**
 * Configuration for: Error reporting
 * Useful to show every little problem during development, but only show hard errors in production
 */

define('ENVIRONMENT','development');

if(
ENVIRONMENT=='development' || ENVIRONMENT=='dev') {
   
error_reporting(E_ALL);
   
ini_set('display_errors',1);
}

//session file path
ini_set('session.save_path', Root.'storage/sessions');

// Error logging engine
ini_set('log_errors', TRUE);
// Logging file path
ini_set('error_log', Root.'storage/logs/'.date('d-m-Y').'.log');
//Return the last error that occurred
error_get_last();

// set your default time-zone
date_default_timezone_set('Asia/Dhaka');

//session generating
if(!isset($_SESSION)) {
   
session_start();
}

$csrf_length = 32;