[eluser]ivantcholakov[/eluser]
I use CodeIgniter with many customizations and I have got a special configuration file environment.php for this purpose. I can propose to you a little bit ugly solution.
At the beginning of the file application/config/constants.php add the following line:
Code:
require dirname(__FILE__).'/environment.php';
Create the file application/config/environment.php and place there your specific settings related to PHP, an example:
Code:
<?php defined('BASEPATH') OR exit('No direct script access allowed.');
/*
*---------------------------------------------------------------
* PHP ini settings
*---------------------------------------------------------------
*/
ini_set(‘date.timezone’, 'Europe/Sofia');
// or
//@date_default_timezone_set('Europe/Sofia');
ini_set('memory_limit', '512M');
ini_set('post_max_size', '16M');
ini_set('upload_max_filesize', '16M');
ini_set('max_file_uploads', 20);
ini_set('max_execution_time', 30);
ini_set('max_input_time', 60);