💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# C.44 IoncubeEncoderTask The `IoncubeEncoderTask` executes the [ionCube](http://www.ioncube.com) encoder (for either PHP4 or PHP5 projects). For more information on the meaning of the various options please consult the ionCube [user guide](http://www.ioncube.com/USER-GUIDE.pdf). Table C.53:聽Attributes NameTypeDescriptionDefaultRequired`allowedserver``String`Restricts the encoded files to particular servers and/or domains. Consult the IonCude documentation for more information.noneNo`binary``Boolean`Whether to save encoded files in binary format (default is ASCII format)`false`No`copy``String`Specifies files or directories to exclude from being encoded or encrypted and copy them to the target directory (separated by space).noneNo`encode``String`Specifies additional file patterns, files or directories to encode, or to reverse the effect of `copy`noneNo`encrypt``String`Specify files or directories (space separated list) that are to be encrypted.noneNo`expirein``String`Sets a period in seconds (s), minutes (m), hours (h) or days (d) after which the files expire. Accepts: `500s` or `55m` or `24h` or `7d`noneNo`expireon``String`Sets a YYYY-MM-DD date to expire the files.noneNo`fromdir``String`Path containing source filesnoneYes`ignore``String`Set files and directories to ignore entirely and exclude from the target directory (separated by space).noneYes`ioncubepath``String`Path to the ionCube binaries/usr/local/ioncubeNo`keep``String`Set files and directories not to be ignored (separated by space).noneNo`licensepath``String`Path to the license file that will be used by the encoded filesnoneNo`nodoccomments``String`Omits documents comments ( /\*\* ... \*/ ) from the encoded files.noneNoobfuscationkey`String`The obfuscation key must be supplied when using the obfuscate optionnoneNo`obfuscate``String`The Encoder can obfuscate the names of global functions, the names of local variables in global functions, and line numbers. Use either `all` or any of `functions`, `locals` or `linenos` separated by a space.noneNo`optimize``String`Controls the optimization of the encoded files, accepts either `more` or `max`noneNo`passphrase``String`The passphrase to use when encoding with a license filenoneNo`phpversion``Integer`The PHP version to use5No`targetoption``String`Option to use when target directory exists, accepts `replace`, `merge`, `update` and `rename`noneNo`todir``String`Path to save encoded files tononeYes`withoutruntimeloadersupport``Boolean`Whether to disable support for runtime initialization of the ionCube Loader`false`No`noshortopentags``Boolean`Whether to disable support for short PHP tags`false`No`callbackfile``String`Path to callback file (.php)n/aNo`obfuscationexclusionsfile``String`Path to obfuscation exclusions filen/aNo`ignoredeprecatedwarnings``Boolean`Whether to ignore deprecated warnings`false`No`ignorestrictwarnings``Boolean`Whether to ignore strict warnings`false`No`allowencodingintosource``Boolean`Whether to allow encoding into the source tree`false`No`messageifnoloader``String`A valid PHP expression to customize the "no loader installed" messagen/aNo`actionifnoloader``String`A valid PHP expression to replace the "no loader installed" actionn/aNo`showcommandline``Boolean`whether to show command line before it is executed`false`No C.44.1 Example ``` <ioncubeencoder binary="true" copy="*.ini config/*" encode="*.inc licenses/license.key" encrypt="*.tpl *.xml" fromdir="files" ignore="*.bak RCS/ *~ docs/" ioncubepath="/usr/local/ioncube" keep="docs/README" licensepath="mylicense.txt" optimize="max" passphrase="mypassphrase" phpversion="4" noshortopentags="false" targetoption="replace" todir="encoded" withoutruntimeloadersupport="true" callbackfile="errhandler.php" obfuscationexlusionsfile="obfex.txt"> <comment>A project encoded with the ionCube encoder.</comment> </ioncubeencoder> ``` C.44.2 Supported Nested Tags - `comment` Custom text that is added to the start of each encoded file.