1 <?php
defined('IN_CMS') or die('No direct access allowed.');
4 Helper for setting php settings
6 function ini_safe_set($key, $value) {
7 // some hosts disable ini_set for security
8 // lets check so see if its disabled
9 if(($disable_functions = ini_get('disable_functions')) !== false) {
10 // if it is disabled then return as there is nothing we can do
11 if(strpos($disable_functions, 'ini_set') !== false) {
16 // lets set it because we can!
17 return ini_set($key, $value);