note 32305 added to function.gzcompress

From: Date: Fri, 23 May 2003 09:44:10 +0000
Subject: note 32305 added to function.gzcompress
Groups: php.notes 
Request: Send a blank email to php-notes+get-48867@lists.php.net to get a copy of this message
I have come up with an interesting use for the Zlib compression 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 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.gzcompress.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32305 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32305&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32305&report=yes

« previous php.notes (#48867) next »