| re: Don't want to send your comments with the code?
It's an interesting idea-- both as an obfuscation device and as an automatic space-saving measure.
Instead of using an obscure directory name for the scripts, you would be better off, IMO, putting an .htaccess file into the cleartext scripts directory with a "deny from all" directive (or a full-fledged password-protected directory if you want clear web access to privileged people). Or, you could store the scripts outside the document-root of the server, making them impossible to directly access via the Web. That way there are no cryptic names to remember (just call it "clear-scripts"), and there is no access for anyone-- even if they guess the directory name.
Also, for extra fun, you might want to look into a mod_rewrite rule that would automatically redirect any calls for your scripts to the pre-processor. It's a slick trick, although kind of a pain to debug.
Last edited by FLEB; Aug 7 '08 at 10:08 PM.
Reason: Post script
|