¼³Ä¡ Àü¿¡ ´ÙÀ½ »çÇ׿¡ ´ëÇØ¼­ Á¤°ËÀÌ ÇÊ¿äÇÕ´Ï´Ù.

1) µð·ºÅ丮 ¸®½ºÆ® ½Ã¿¡ ÆÄÀÏ ¸ñ·ÏÀÌ Ãâ·ÂµÇ´ÂÁö .(Ãâ·ÂµÇ¸é ¾ÈµË´Ï´Ù.)(httpd.conf)
2) register_globals °ªÀÌ onÀ¸·Î ¼³Á¤µÇ¾î ÀÖ´ÂÁö(php.ini)

¾ÆÆÄÄ¡ ¼³Á¤
 µð·ºÅ丮 ¸ñ·ÏÀÌ ¾È ³ª¿Àµµ·Ï ¼³Á¤ ÇÕ´Ï´Ù. httpd.conf ÆÄÀÏ¿¡¼­ Options¿¡¼­ Indexes°¡ ÀÖ´ÂÁö È®ÀÎ ÇÕ´Ï´Ù.
±×¸®°í ½ÇÁ¦ µð·ºÅ丮 ¸ñ·ÏÀÌ ³ª¿À´ÂÁö È®ÀÎÇϽñ⠹ٶø´Ï´Ù. (*ÁÖÀÇ .php ÆÄÀϵµ ¾÷·Îµå °¡´ÉÇÔÀ¸·Î ÆÄÀÏ ¸ñ·ÏÀÌ Ãâ·ÂµÇ¸é php ÆÄÀÏÀ» ½ÇÇàÇÒ ¼ö ÀÖ½À´Ï´Ù.)

# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
#    Options Indexes FollowSymLinks MultiViews
    Options FollowSymLinks MultiViews

php ȯ°æ ¼³Á¤

php.ini ÆÄÀÏ¿¡¼­ ´ÙÀ½À» ¼öÁ¤ »óŸ¦ È®ÀÎ ÇÑ´Ù.


phpinfo()·Î ºÃÀ» ¶§ ´ÙÀ½°ú °°ÀÌ register_globals °¡ off ·Î ¼³Á¤µÇ¾î ÀÖÀ¸¸é php.ini ÆÄÀÏ¿¡¼­ register_globals¸¦ onÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù.

; Whether or not to register the EGPCS variables as global variables.  You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data.  This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
;
; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = On

¼³Á¤À» ¿Ï·áÇϰí web server¸¦ restart ÇÕ´Ï´Ù. (À¢¸¸ÇÑ È£½ºÆÃ ¾÷ü´Â ´Ù register_globals¸¦ onÀ¸·Î ¼³Á¤ÇØ ³õ½À´Ï´Ù.)

±×¸®°í ´ÙÀ½À» È®ÀÎ ÇÕ´Ï´Ù.

 Â÷·Ê