localhost Posted October 11, 2006 Share Posted October 11, 2006 Basically, I know there are tons of free things where you put in your html and it encodes it with javascript so it still works but makes it ridiculously difficult for others to edit. Well...I need this to work with a php function, so I can do encodehtml($input); and have it return the input encoded.Any help? Thanks! Quote Link to comment Share on other sites More sharing options...
michaellunsford Posted October 12, 2006 Share Posted October 12, 2006 This is all over the PHP manuel page on base64_encode, but the location it was hosted on (through dyndns.org apparently) has mysteriously vanished. The source to that file is attached -- hope it can help.PS> base64_encode manuel page: http://us3.php.net/base64_encode[attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
trq Posted October 12, 2006 Share Posted October 12, 2006 Encoding your html so a browser can't understand it is pointless. A browser can't understand it! Quote Link to comment Share on other sites More sharing options...
michaellunsford Posted October 12, 2006 Share Posted October 12, 2006 I didn't think of that he was trying to obfuscate HTML -- but now that I read it a few more times it does sound that way.So, are you trying to obfuscate HTML that is presented to the browser or PHP that remains on the server? Please clarify. Quote Link to comment Share on other sites More sharing options...
trq Posted October 12, 2006 Share Posted October 12, 2006 [quote]So, are you trying to obfuscate HTML that is presented to the browser or PHP that remains on the server?[/quote]There is no point obfuscating php on the server either, php needs to be interpreted. Of course there are solutions available, but they are applications that need to be installed on the server. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.