[PHP] post, get, cookie, session º¯¼ö È®ÀÎ |
|
|
 |
14³â Àü |
2Â÷ ¹è¿±îÁö Áö¿øÇϸç, °£´ÜÇÏ°Ô ³Ñ¾î¿Â º¯¼ö¸¦ È®ÀÎ ÇÒ¼ö ÀÖ´Â ½ºÅ©¸³Æ®ÀÔ´Ï´Ù.
<?
$DebuggingMethod = 1;
function GetMethodType($CheckingMethod, $TranceMethod) {
echo "-----------------------------------------------------------------<br>";
echo "<font color='#999999'><b>" . $TranceMethod . "</b></font><br>";
echo "-----------------------------------------------------------------<br>";
$first_counter = 1;
foreach ($CheckingMethod as $first_key => $first_value) {
if ( is_array($first_value) ) {
$second_counter = 1;
foreach ($first_value as $second_key => $second_value) {
echo " - <font size=1>" . $second_counter . "</font>. " . $second_key . " = " . $second_value . "<br>";
$second_counter++;
}
} else {
echo "<font size=1>" . $first_counter . "</font>. " . $first_key . " = " . $first_value . "<br>";
$first_counter++;
}
}
echo "-----------------------------------------------------------------<br>";
}
if ( $DebuggingMethod ) {
if ( $_POST ) {
GetMethodType($_POST, "POST");
}
if ( $_GET ) {
GetMethodType($_GET, "GET");
}
if ( $_COOKIE ) {
GetMethodType($_COOKIE, "COOKIE");
}
if ( $_SESSION ) {
GetMethodType($_SESSION, "SESSION");
}
}
?>
-------------------------------------------------------------------------------------------------------------
2Â÷¿ø ÀÌ»ó ¹è¿À» Áö¿øÇÏ·Á¸é ÀÚ½ÅÀÇ ÇÔ¼ö¸¦ È£ÃâÇϵµ·Ï
Â¥¸é µË´Ï´Ù.
±×¿Ü Âü°í,
- object dump,
- ³»ÀåÇÔ¼ö, »ç¿ëÀÚ Á¤ÀÇÇÔ¼ö ¸ñ·Ï º¸±â
- Á¤ÀÇµÈ »ó¼ö¿Í ±× °ª º¸±â
- »ç¿ë°¡´ÉÇÑ class ¸ñ·Ï
- include, require µÈ ÆÄÀÏ ¸ñ·Ï
- ±âŸ..
http://ftp.linuxchannel.net/devel/php_debug/
Á¦°¡ ÀÚÁÖ ¾Ö¿ë(?)ÇÏ´Â _debug() ÇÔ¼ö ÀÔ´Ï´Ù.
|
|
̵̧ : 260 |
̵̧
¸ñ·Ï
|
|