Note: The archives category content is an automatically generated focus channel and does not neccessarily reflect the opinions of this blog. No responsibility is taken for the external links presented here, follow at your own discretion.
The archives content is never scraped from sites - but an abstract obtained from search engines.
| Problem |
Solution |
Example |
Reference |
Recommended |
Just wrote this tool, to allow instant transformation of data into following formats: base64 encode decode, urlencode decode, md5 and sha1 hashing, addslashes and htmlentities click here to access the transform tool Pretty cool to see ‘all’ too - check it out.
|
|
| Problem |
Solution |
Example |
Reference |
Recommended |
Here is the code: <?php if(isset($_GET['mode'])) { $mode=urlencode($_GET['mode']); $val=$_GET['val']; switch($mode) { case "base64_encode": echo base64_encode($val); break; case "base64_decode": echo base64_decode($val); break; case "urldecode": echo urldecode($val); break; case "urlencode": echo urlencode($val); break; case "htmlentities": echo htmlentities($val); break; case "rot13": echo str_rot13($val);break; case "md5": echo md5($val);break; case "sha1": echo sha1($val);break; case "all": echo "base64_encode: ".base64_encode($val); echo "base64_decode: ".base64_decode($val); echo "urldecode: ".urldecode($val); echo "urlencode: ".urlencode($val); echo "htmlentities: ".htmlentities($val); echo "addslashes: ".addslashes($val); echo "rot13: ".str_rot13($val); echo "md5: ".md5($val); echo "sha1: ".sha1($val); break; } exit(0); } ?>
|
Leave a Reply
You must be logged in to post a comment.