[www] r677 - trunk/www.matroska.org/data/test

[email protected]
Newsgroups gmane.comp.multimedia.matroska.cvs
Message-ID <[email protected]>
Author: robux4
Date: 2004-09-09 12:39:52 +0400 (Thu, 09 Sep 2004)
New Revision: 677

Modified:
   trunk/www.matroska.org/data/test/base64.php
Log:
add encoding

Modified: trunk/www.matroska.org/data/test/base64.php
===================================================================
--- trunk/www.matroska.org/data/test/base64.php	2004-09-09 08:35:15 UTC (rev 676)
+++ trunk/www.matroska.org/data/test/base64.php	2004-09-09 08:39:52 UTC (rev 677)
@@ -5,6 +5,7 @@
 <link href="../csssheets/test.css" rel="stylesheet" type="text/css"/>
 </head>
 <body>
+<h1>Base64 decoding</h1>
 <form action="base64.php">
 <p>Base64 String : <input type="text" size="100" name="base64d"/></p>
 <p><input type="submit"/></p>
@@ -12,9 +13,21 @@
 if (isset($_REQUEST["base64d"]))
 {
 	echo "<p>Decoded Data : 0x".bin2hex(base64_decode($_REQUEST["base64d"]))."</p>";
-//	phpinfo();
 }
 ?>
 </form>
+
+<h1>Base64 encoding</h1>
+<form action="base64.php">
+<p>Hexa String : <input type="text" size="100" name="hexad"/></p>
+<p><input type="submit"/></p>
+<?php
+if (isset($_REQUEST["hexad"]))
+{
+	echo "<p>Encoded Data : ".base64_decode(base_convert($_REQUEST["hexad"], 16, 256))."</p>";
+}
+?>
+</form>
+
 </body>
 </html>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.