viewing paste Unknown #136 | PHP

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?php
header('Content-Type: text/html; charset=euc-kr');
 
if(isset($_REQUEST['data'])){
    $data = preg_replace('/[^0-9A-Fa-f]/', '', $_REQUEST['data']);
    $data = pack('H*', $data);
    echo iconv("ISO-8859-1", "UTF-8", $data);
?>
<?php
} else {
?><html>
<head>
</head>
<body>
<form action="hexparse.php" method="post">
Content:<br>
<textarea name="data" id="data" style="width:760px; height: 400px;"></textarea>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>
<?php } ?>
Viewed 1414 times, submitted by Guest.