Navigation


PHP LockIt! Documentation

Documentation - General - Special Comments

Special Comments

PHP LockIt! looks for some special comments in your PHP scripts. These can be used to further control the processing of individual scripts. These comments override any setting you make in the PHP LockIt! GUI for the file in which the setting appears. The following are recognised by PHP LockIt!

Special comments are removed from the output file. Special comments all begin with "// PHPLOCKITOPT" and should appear on a line by themself in the file.

START

// PHPLOCKITOPT START

Can be placed in your PHP script to tell PHP Lockit! to encode only the remainder of the script. Any lines before this special comment are copied through as plain text. This can be used to allow part of the script to be used for configuration settings.

ENCODE

// PHPLOCKITOPT ENCODE

Enables encoding for this file.

NOENCODE

// PHPLOCKITOPT NOENCODE

Disables encoding for this file. None of the file will be encoded by PHP LockIt!

OBFUSCATE

// PHPLOCKITOPT OBFUSCATE

Enables obfuscation for this file.

NOOBFUSCATE

// PHPLOCKITOPT NOOBFUSCATE

Disables obfuscation for this file. None of the file will be obfuscated.

STRIPCOMMENTS

// PHPLOCKITOPT STRIPCOMMENTS

Enables comment stripping for this file. Any comments present in the file will be removed.

NOTE: Comments are always stripped when encoding is performed.

NOSTRIPCOMMENTS

// PHPLOCKITOPT NOSTRIPCOMMENTS

Disables comment stripping for this file.

NOTE: Comments are always stripped when encoding is performed.

STRIPWHITESPACE

// PHPLOCKITOPT STRIPWHITESPACE

Enables whitespace stripping for this file. Any unncesessary whitespace is stripped from the file.

NOTE: Whitespace is always stripped when encoding is performed.

NOSTRIPWHITESPACE

// PHPLOCKITOPT NOSTRIPWHITESPACE

Disables whitespace stripping for this file.

NOTE: Whitespace is always stripped when encoding is performed.

DOUBLEQUOTEOPTIMISATION

// PHPLOCKITOPT DOUBLEQUOTEOPTIMISATION

Enables the double quote optimisation for this file. Suitable double quoted strings are replaced by single quoted strings, which are parsed more efficiently by the PHP parser.

NODOUBLEQUOTEOPTIMISATION

// PHPLOCKITOPT NODOUBLEQUOTEOPTIMISATION

Disables the double quote optimisation for this file.

REPLACESTRINGS

// PHPLOCKITOPT REPLACESTRINGS

Enable simple encoding of strings for this file. Requires obfuscation to be enabled for this file.

NOREPLACESTRINGS

// PHPLOCKITOPT NOREPLACESTRINGS

Disable simple encoding of strings for this file.

REPLACESTDFUNCS

// PHPLOCKITOPT REPLACESTDFUNCS

Enable replacement of standard PHP functions for this file. Requires obfuscation to be enabled for this file.

NOREPLACESTDFUNCS

// PHPLOCKITOPT NOREPLACESTDFUNCS

Disable replacement of standard PHP functions for this file.



 
 
  PHPLock It!
Latest Version
2.2.0