note 32306 added to function.base64-encode
| From: | Richard at rack1 dot php dot net | Date: | Fri, 23 May 2003 09:47:28 +0000 |
| Subject: | note 32306 added to function.base64-encode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-48868@lists.php.net to get a copy of this message | ||
I have come up with an interesting use for the base64 features. Code obfuscation! Here's a
working example you can use if you want to protect your source code from greedy clients who will rip
out your copyright notices or modify the code for their own use without paying you:
http://richard.fairthorne.is-a-geek.com/utils_obfuscate.php
This page uses a combination of Zlib and base64_encode/decode features to obfuscate and compress web
pages which can be displayed on any php enabled webserver with Zlib.
It does not use any variables or disk storage, and doesn't affect the "state" of your
php program, so you can also use it to compress function libraries, configuration files, or whatever
you wish.
Enjoy!
----
Manual Page -- http://www.php.net/manual/en/function.base64-encode.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32306
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32306&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32306&report=yes