Jump to content

obfuscate html with php function?


localhost

Recommended Posts

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

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]
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]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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.