5.2. SourceThe Source tab in the Project Settings dialog is illustrated below: The Project source folder field contains the path of a folder containing files to be encoded. The contents of this folder and its subfolders are displayed in the Project files tree. When encoding a project, the Encoder will perform one of three operations on each file; encoding PHP and HTML source, encrypting non-PHP contents, or just copying. Files and folders can also be excluded from being processed. Unless excluded, each processed file will be written within the target folder specified on the Target tab. Files are encoded based on the source language chosen. How each file will be processed is first determined by configurable default rules. In addition, files and folders can be given custom settings, for example to copy a particular PHP file instead of encoding it. To change the defaults, simply right click on one or more files or folders and select an item from the popup context menu. For convenience, the buttons above the source tree can also be used to encode, encrypt, copy, exclude or re-include items back into the project. The default rules for encoding and encrypting are based on the extensions in the PHP encoding extensions and Non-PHP encryption extensions list boxes. The Excluded item patterns list box specifies names or patterns of files or folders to exclude. Encrypted files are processed using a strong symmetric block cipher, and it may be desirable to encrypt files such as templates in this way. The Loader API can be used to read and write files encrypted by the Encoder, and this is described further in the Encoder PDF sections on encrypted files and the Loader API. Tree context menu optionsFile context menu:
Some menu items may be disabled based on the particular settings of each file. Directory context menu:
Note: excluded folders are still scanned before encoding as there may be child items that are selected to be included in the project. For best performance when ignoring items, use the Skip feature instead. Note: If a folder is set to be copied, encoded, encrypted or excluded, then items subsequently added to the folder will inherit the same properties. PHP language rangeAs with the Quickstart tab, this specifies the minimum and maximum PHP runtime version you wish to support for the generated files. The selection determines which encodings will be performed, with files in some cases containing a Bundle of more than one encoding. Below the selection, the GUI shows which runtime versions of PHP are supported by the selection. The minimum version should be chosen to be no lower than the PHP language version used by the source files. For example, files cannot be encoded for PHP 7 if they use syntax only available in PHP 8. The maximum supported runtime version may show as higher than that selected. This would be if the ionCube Loader runtime is able to process files encoded for an older version of PHP, such as the ionCube Loader for PHP 8.3 being able to process files encoded for PHP 8.2. |
Copyright 2002-2024 ionCube Ltd. All rights reserved.
|