Is possible to add custom fields to PHP ini file? -
i want know if possible add custom fields php ini file , ini_get function.
this code works fine:
;php ini file mysqli.default_host=localhost # php code ini_get('mysqli.default_host') but want (isn't working):
;php ini file my_custom_field=custom_value # php code ini_get('my_custom_field') is possible this? because when custom fields, returns false.
php.ini php configuration, unless making extension (written in c) shouldn't add new options it. if making configuration specific site/application create own config.ini file inside project's root. can use parse_ini_file values it.
if must add custom entries php.ini can them using get_cfg_var, not ini_get.
Comments
Post a Comment