![](/bink.gif) |
|
| ![](/bink.gif) |
ini get - php.ini¿¡ ÁöÁ¤µÇ¾î ÀÖ´Â Áö½Ã¾îÀÇ °ªÀ» Àоî¿Â´Ù |
|
|
![](icon/private_name/1.gif) |
13³â Àü |
ini_get — Gets the value of a configuration option
string ini_get ( string $varname )
php.ini¿¡ ÁöÁ¤µÇ¾î ÀÖ´Â Áö½Ã¾îÀÇ ¹åÀ» Àоî¿Â´Ù. Á¸ÀçÇÏÁö ¾Ê´Â Áö½Ã¾î¸¦ È£ÃâÇÏ¸é °ø¹éÀÌ ¹ÝȯµÈ´Ù.
¶ÇÇÑ °ªÀÌ Off·Î ÁöÁ¤µÇ¾î ÀÖÀ¸¸é °ø¹éÀ» ¹ÝȯÇÏ°í, OnÀ¸·Î ÁöÁ¤µÇ¾î ÀÖÀ¸¸é 1À» ¹ÝȯÇÑ´Ù.
<?php
/*
php.ini¿¡ ¾Æ·¡¿Í °°ÀÌ ÁöÁ¤µÇ¾î ÀÖ´Â °æ¿ì:
display_errors = On
register_globals = Off
post_max_size = 8M
*/
echo 'display_errors = ' . ini_get('display_errors') . "\n";
echo 'register_globals = ' . ini_get('register_globals') . "\n";
echo 'post_max_size = ' . ini_get('post_max_size') . "\n";
echo 'post_max_size+1 = ' . (ini_get('post_max_size')+1) . "\n";
/* Ãâ·Â°á°ú
display_errors = 1
register_globals =
post_max_size = 8M
post_max_size+1 = 9
*/
?>
http://docs.php.net/manual/kr/function.ini-get.php
======================================
ini_get('upload_max_filesize') |
|
̵̧ : 270 |
̵̧
¸ñ·Ï
|
|
| ![](/bink.gif) |
|