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! Link to comment https://forums.phpfreaks.com/topic/23714-obfuscate-html-with-php-function/ 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] Link to comment https://forums.phpfreaks.com/topic/23714-obfuscate-html-with-php-function/#findComment-107726 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! Link to comment https://forums.phpfreaks.com/topic/23714-obfuscate-html-with-php-function/#findComment-107728 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. Link to comment https://forums.phpfreaks.com/topic/23714-obfuscate-html-with-php-function/#findComment-107731 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. Link to comment https://forums.phpfreaks.com/topic/23714-obfuscate-html-with-php-function/#findComment-107733 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.