\n" ; print "デバッグDEATH\n" ; print "\n" ; // POST変数の出力 print "\n\n" ; if(count($HTTP_POST_VARS) > 0){ reset($HTTP_POST_VARS) ; while( $key = key( $HTTP_POST_VARS ) ){ $val = $HTTP_POST_VARS[$key] ; if(is_array($val)){ $value = htmlspecialchars( implode($val, ":") ) ; print "\n\n\n\n" ; }else{ $val = htmlspecialchars($val) ; print "\n\n\n\n" ; } next ($HTTP_POST_VARS) ; } } // GET変数の出力 print "\n\n" ; if(count($HTTP_GET_VARS) > 0){ reset($HTTP_GET_VARS) ; while( $key = key( $HTTP_GET_VARS ) ){ $val = $HTTP_GET_VARS[$key] ; if(is_array($val)){ $value = htmlspecialchars( implode($val, ":") ) ; print "\n\n\n\n" ; }else{ $val = htmlspecialchars($val) ; print "\n\n\n\n" ; } next ($HTTP_GET_VARS) ; } } // COOKIE変数の出力 print "\n\n" ; if(count($HTTP_COOKIE_VARS) > 0){ reset($HTTP_COOKIE_VARS) ; while( $key = key( $HTTP_COOKIE_VARS ) ){ $val = $HTTP_COOKIE_VARS[$key] ; if(is_array($val)){ $value = htmlspecialchars( implode($val, ":") ) ; print "\n\n\n\n" ; }else{ $val = htmlspecialchars($val) ; print "\n\n\n\n" ; } next ($HTTP_COOKIE_VARS) ; } } // デバッグ変数の出力 if(count($DEBUG) > 0){ print "\n\n" ; while( list($key, $val) = each( $DEBUG ) ){ if(is_array($val)){ $value = htmlspecialchars( implode($val, ":") ) ; print "\n\n\n\n" ; }else{ $val = htmlspecialchars($val) ; print "\n\n\n\n" ; } } } print "
HTTP_POST_VARS
$key$value
$key$val
HTTP_GET_VARS
$key$value
$key$val
HTTP_COOKIE_VARS
$key$value
$key$val
\$DEBUG
$key$value
$key$val
\n" ; } print "
\n\n\n" ; } //--------------------------------------------------------- // mk_2dhash_from_array // -- 二次元ハッシュを作る関数 //--------------------------------------------------------- function mk_2dhash_from_array($flds,$data) { $master = "" ; $cnt = 0 ; while($data[$cnt]){ for($i=0; $i\n" ; if($i == 0){ $pkey = $data[$cnt]; }else{ if($data[$cnt] == "-") { $data[$cnt] = "" ; } //echo $pkey .$flds[$i] ."
\n" ; $master[$pkey][$flds[$i]] = $data[$cnt]; //echo $master[$pkey][$flds[$i]] ."
\n" ; } $cnt++ ; } //echo "[ $cnt ]\n" ; } return $master ; } //--------------------------------------------------------- // mk_2dhash_from_file // -- 二次元ハッシュを作る関数 //--------------------------------------------------------- function mk_2dhash_from_file ($flds,$file) { $master = "" ; if(file_exists($file)){ if(!$fp = fopen($file,"r")){ echo "$file open error!!\n" ; } $data = file($file) ; for($i=0; $i $b[$SORT_KEY]) ? 1 : -1; }else{ return -1 ; } } ?>