wordpress - Cannot read custom php.ini settings in wp-admin -
i using wordpress custom contact page in theme , want change post_max_size setting allow large file uploads. have included php.ini file in wp-admin directory these settings
post_max_size = 42m upload_max_filesize = 40m
and wordpress phpinfo() plugin shows these being parsed correctly. fine far.
for easier code maintenance don't want work hard-coded values in script, rather obtain them @ runtime. problem is, calling ini_get('post_max_size')
on page gives me default setting 8m
, not custom setting.
is there other way "real" settings?
the isp allows custom php.ini , overriding these settings. tried copying php.ini active theme directory, didn't help.
Comments
Post a Comment