noalyss Version-9
test-ini_set.php
Go to the documentation of this file.
1<?php
2function change_init($p_setting,$p_value)
3{
4 printf("<p> Ask for %s new %s old_value %s</p>",
5 $p_setting,$p_value,ini_get($p_setting));
6
7 if ( ini_set($p_setting,$p_value) == false ) {
8 printf("<p> ERREUR %s</p>",$p_setting);
9 } else {
10 printf("<p> Work %s = %s </p>" , $p_setting,ini_get($p_setting));
11 }
12
13}
14change_init("post_max_size","20MB");
15change_init("max_execution_time","360");
16change_init("memory_limit","1G");
17change_init("upload_max_size","1G");
18echo '<hr>';
19 phpinfo();
20
change_init($p_setting, $p_value)
Definition: test-ini_set.php:2