How to gets a value from php.ini file configuration in PHP

3 Answers

0 votes
echo ini_get('post_max_size');


/*
run: 

8M  

*/

 



answered Jun 30, 2016 by avibootz
0 votes
echo ini_get('memory_limit'); 


/*
run: 

128M  

*/

 



answered Jun 30, 2016 by avibootz
0 votes
echo ini_get('upload_max_filesize'); 


/*
run: 

2M  

*/

 



answered Jun 30, 2016 by avibootz

Related questions

1 answer 178 views
2 answers 238 views
1 answer 151 views
1 answer 139 views
1 answer 158 views
1 answer 177 views
1 answer 222 views
...