View Full Version : HTML Encoding?!
softgroups
Sep 18th 2007, 11:12 am
What's the PHP html encoding function name?!
Like javascript do this...
I want to known how i can encrypt the a string=Aloka to something like this %41%6C%6F%6B%61 in php
<Script Language='Javascript'>
<!-- HTML Encryption provided by iWEBTOOL.com -->
<!--
document.write(unescape('%41%6C%6F%6B%61'));
//-->
</Script>
omgitsfletch
Sep 18th 2007, 11:29 am
urlencode($string);
That will only encode special characters though (i.e. non alphanumeric). Can't recall any function that will encode ALL characters. Is that really necessary?
softgroups
Sep 18th 2007, 11:59 am
urlencode($string);
That will only encode special characters though (i.e. non alphanumeric). Can't recall any function that will encode ALL characters. Is that really necessary?
yes it's really necesary
TwistMyArm
Sep 18th 2007, 12:51 pm
"really necessary" as in "I just want it to take another minute or two to copy my data while making the site entirely useless for search engines", right?
That kind of protection stops only the dumbest of users.
omgitsfletch
Sep 18th 2007, 2:07 pm
If obfuscation is your goal, then it's true, it really isn't worth the trouble. It's HTML code, get over it, it's out there. It isn't worth the gain of obfuscating it for the loss of readability for search engines. If you really want to make it difficult for people, at least make up your own homebrew encryption with PHP to make it somewhat worthwhile, not something that can be solved as quickly as a urldecode($string) command.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.