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");
}
}
?>
<br />
2Â÷ ¹è¿±îÁö Áö¿øÇϸç, °£´ÜÇÏ°Ô ³Ñ¾î¿Â º¯¼ö¸¦ È®ÀÎ ÇÒ¼ö ÀÖ´Â ½ºÅ©¸³Æ®ÀÔ´Ï´Ù.<br />
<br />
<br />
<?<br />
$DebuggingMethod = 1;<br />
<br />
function GetMethodType($CheckingMethod, $TranceMethod) {<br />
echo "-----------------------------------------------------------------<br>";<br />
echo "<font color='#999999'><b>" . $TranceMethod . "</b></font><br>";<br />
echo "-----------------------------------------------------------------<br>";<br />
$first_counter = 1;<br />
foreach ($CheckingMethod as $first_key => $first_value) {<br />
if ( is_array($first_value) ) {<br />
$second_counter = 1;<br />
foreach ($first_value as $second_key => $second_value) {<br />
echo "&nbsp;- <font size=1>" . $second_counter . "</font>. " . $second_key . " = " . $second_value . "<br>";<br />
$second_counter++;<br />
}<br />
} else {<br />
echo "<font size=1>" . $first_counter . "</font>. " . $first_key . " = " . $first_value . "<br>";<br />
$first_counter++;<br />
}<br />
}<br />
echo "-----------------------------------------------------------------<br>";<br />
}<br />
<br />
if ( $DebuggingMethod ) {<br />
if ( $_POST ) {<br />
GetMethodType($_POST, "POST");<br />
}<br />
if ( $_GET ) {<br />
GetMethodType($_GET, "GET");<br />
}<br />
if ( $_COOKIE ) {<br />
GetMethodType($_COOKIE, "COOKIE");<br />
}<br />
if ( $_SESSION ) {<br />
GetMethodType($_SESSION, "SESSION");<br />
}<br />
}<br />
?>
|