When I cannot access the php.ini:
<?phpfunction to_ini($array){$res = array();foreach($array as $key => $val){if(is_array($val)){$res[] = "\n[$key]";foreach($val as $skey => $sval) $res[] = "$skey = ".(is_numeric($sval) ? $sval : '"'.$sval.'"');}else $res[] = "$key = ".(is_numeric($val) ? $val : '"'.$val.'"');}return implode("\r\n", $res);}function php_ini() {return to_ini(ini_get_all());}echo '<pre>';print_r(php_ini());die();
Comments
Post a Comment