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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.