Jump to content

Archived

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

localhost

obfuscate html with php function?

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!

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites
Encoding your html so a browser can't understand it is pointless. A browser can't understand it!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
[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.

Share this post


Link to post
Share on other sites

×

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.