QUICK-REFERENCE.txt 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. The ionCube Encoder - Version 6
  2. -------------------------------
  3. Q U I C K R E F E R E N C E
  4. -----------------------------
  5. This Quick Reference guide provides a summary of all available command line
  6. options in the Encoder Pro version.
  7. -S | --syntax-check
  8. Check the syntax of a file or directory. No encoding is performed, but files
  9. are parsed and any errors reported. Multiple command arguments may be
  10. specified, and each is syntax checked in turn. Each argument may be a file
  11. or a directory.
  12. e.g.
  13. ioncube_encoder -S file1.php project-x.php index.php
  14. where file1.php and index.php are files, and project-x.php is a directory.
  15. -o <target file or directory>
  16. Specify the target file or directory. e.g.
  17. ioncube_encoder test.php -o test-encoded.php
  18. ioncube_encoder test-project -o test-project-encoded
  19. --into <directory>
  20. Alternative to -o for specifying an encoding target. Specifies the
  21. directory to encode files or directories into, rather than the
  22. output name itself. When using --into, more than one source file or
  23. directory may be specified at the same time.
  24. ioncube_encoder test.php --into /home/me/encoded-files
  25. ioncube_encoder *.php --into /home/me/encoded-files
  26. ioncube_encoder myproject mylibs --into /home/me/release
  27. --ascii
  28. Use ASCII encoding for encoded files. This is the default setting.
  29. --binary
  30. Use binary encoding for encoded files.
  31. --allow-encoding-into-source
  32. Allow the encoding target to be within the source tree. The encoder normally
  33. attempts to prohibit encoding directories into the target directory to
  34. prevent unexpected results or accidental overwriting of source files.
  35. --project-file=<file>
  36. Specify an optional file from which to read the options used when running
  37. the encoder. If the file already exists when the encoder is run then options
  38. are read from the file. Any other command line options are processed after
  39. those in the file and add to or override those from the file.
  40. --create-project
  41. Encoder settings are taken from the command line only and the project file
  42. specified with --project-file is created or overwritten with those options.
  43. --update-project
  44. Encoder settings are read from the project file specified with --project-file
  45. and those settings plus any extra command options are written back to the
  46. project file.
  47. --use-hard-links
  48. When encoding a directory, use hard links to add non-encoded files into the
  49. destination directory structure rather than copying.
  50. --only-include-encoded-files
  51. When encoding a directory hierarchy only include encoded files into the
  52. destination directory structure.
  53. --encode=<pattern> | --copy=<pattern>
  54. Encode or copy files or directories matching <pattern>. Patterns ending
  55. with a trailing '/' match directories. These options may be specified
  56. more than once, and are applied in order when determining whether
  57. or not a file or directory should be encoded or copied.
  58. The default rules will encode all files matching *.php, *.php3, *.php4
  59. or *.phtml in all directories. Copying a directory copies files in that
  60. directory and all subdirectories. Subdirectories may then be encoded again
  61. with --encode. e.g --copy=a/ --encode=a/b/c would copy files in
  62. directories a, a/b, a/d, but encode files in a/b/c, a/b/c/c1 etc.
  63. For compatibility with previous versions, --include is an alias for --encode,
  64. and --exclude is an alias for --copy.
  65. --without-keeping-file-perms
  66. Don't apply file permissions from source files to target files.
  67. --without-keeping-file-times
  68. Don't apply file access times from source files to target files.
  69. --without-keeping-file-owner
  70. Don't apply file ownership from source files to target files when
  71. running the encoder as root.
  72. --apply-file-user=<user id/name>
  73. Apply the given file user id or name to target files instead of the
  74. source file user id when running the encoder as root.
  75. --apply-file-group=<group id/name>
  76. Apply the given file group id or name to target files instead of the
  77. source file group id when running the encoder as root.
  78. --rename-target
  79. Rename the target file/directory if it already exists.
  80. --replace-target
  81. Replace the target file/directory if it already exists.
  82. --merge-target
  83. Merge source files into an already existing target directory.
  84. --allow-asp-tags
  85. Allow the tags <% and %> to be recognised as delimiters for PHP code.
  86. --no-short-open-tags
  87. Disables <? as starting PHP code.
  88. --strict-php
  89. Enable strict checking of PHP usage. This enables warnings if the
  90. deprecated language feature of passing a variable by reference in
  91. a function call is used.
  92. --expire-on=<yyyy-mm-dd>
  93. Expire files on the given date.
  94. --expire-in=<period>
  95. Expire files this period after encoding. The period is given
  96. as <number><factor>, where <factor> may be one of s,m,h,d,w to denote
  97. seconds, minutes, hours, days or weeks. e.g. 'expire-in 7d' means expire
  98. in 7 days.
  99. --allowed-server [<server names>][@<ip addresses>]
  100. Specify a server that scripts are allowed to run on. Each server specification
  101. may optionally contain one or more server names and one or more IP addresses.
  102. e.g.
  103. Single IP
  104. --allowed-server 192.168.1.8
  105. IP Range 192.168.1.5 to 192.168.1.9
  106. --allowed-server 192.168.1.5-9
  107. Servername www.foo.com
  108. --allowed-server www.foo.com
  109. Servername www.foo.com on IP 192.168.1.2
  110. --allowed-server www.foo.com@192.168.1.2
  111. Servernames www.foo.com and foo.com on either 192.168.1.2 or 192.168.1.8
  112. www.foo.com,foo.com@192.168.1.2,192.168.1.8
  113. --without-runtime-loader-support
  114. Don't generate encoded files capable of installing the Loader at runtime.
  115. By default encoded files are generated that will attempt to find and install
  116. the Loader at runtime if the Loader is not already installed. You may want
  117. to use this option if you know that encoded files will always be used on
  118. a system where the Loader is installed as an extension in php.ini, and files
  119. will be slightly smaller.
  120. --message-if-no-loader=<message>
  121. Specify the argument that gets passed to the PHP die() function if no loader
  122. can be installed.
  123. --action-if-no-loader=<php code>
  124. Specify action to be performed if no loader can be installed
  125. --loader-path=<path>
  126. Specify the loader name and path for dynamic loading
  127. --preamble-file=<file>
  128. Take the entire file preamble from <file>. And comments specified with
  129. -add-comments or --add-comment will still be added.
  130. --add-comments=<file>
  131. Add arbitrary text to header from file as comment lines
  132. --add-comment=<text>
  133. Add text as a comment to header
  134. --optimise <more|max>
  135. --optimize <more|max>
  136. Use more or the maximum processing to produce the most efficient files.
  137. --property 'name[=value][, ...]' or --properties 'name[=value][, ...]'
  138. Define named properties for encoded files and an optional value for the
  139. property. Properties can be read via the Loader API and their existence
  140. made a requirement for being included. Values can be numeric,
  141. a string (optionally delimited by ' or "), or an array, delimited by
  142. { }. Separate multiple property definitions by ','. These two options
  143. are aliases for each other.
  144. --include-if-property 'name=[value][, ...]'
  145. Only permit file to be included if the given property or properties are all
  146. defined by the file doing the include. May be used more than once to specify
  147. multiple sets of valid properties.
  148. --disallow-untrusted-extensions
  149. Do not allow encoded files to be usable on a server that has an untrusted
  150. (e.g. opensource) engine extension installed. By default, encoded files
  151. are allowed to be run.
  152. --loader-event '<event>=<message>'
  153. Customise the message of an event triggered in the Loader.
  154. <event> should be the event type to customise and <message> is the text
  155. to associate with the event. <event> and may be one of:
  156. corrupt-file - triggered when a corrupted file is detected
  157. expired-file - triggered when a file has reached its expiry time
  158. no-permissions - triggered when a file with an ip restriction is not met
  159. clock-skew - triggered when a file is used where the system clock is set more
  160. than 24 hours prior to the file being encoded
  161. untrusted-extension - triggered when an encoded file is used on a system with
  162. with an untrusted extension installed.
  163. (See --disallow-untrusted-extensions above)
  164. --license-file=<file>
  165. Specify an alternate license file to the default 'licdata.txt'.
  166. Alternatively the environment variable IONCUBE_ENCODER_LICENSE_FILE
  167. may instead be set to specify the path of the license file.
  168. --no-doc-comments
  169. PHP 5 exposes documentation comments via the reflection API. By default these
  170. comments are also present in encoded files, but they can be suppressed using the
  171. --no-doc-comments option.
  172. --verify
  173. Verify that each encoded file is a valid PHP file and can be read by a PHP
  174. system not running the Loader.
  175. -v | --verbose
  176. Display information during encoder operations.
  177. -V | --version
  178. Display version information.
  179. -h | --help
  180. Display help.
  181. Copyright (c) 2002-2005 ionCube Ltd. Last revised 17-June-2005