|
Encoding options |
Top Previous Next |
|
PHP version:
On this screen you can choose between PHP 4.x.x or PHP 5.x.x encoding. Your choice should be easy when you know what version of PHP is installed on the server where you plan to run your scripts. You can also create two different versions of your scripts if you have clients who may have a preference for a particular version of PHP.
NOTE: Scripts encoded for PHP 4.x.x will not be able to run under PHP 5.x.x and vice versa.
PHP language options:
Allow ASP-style <% %> tags - enables the use of ASP-like <% %> tags in addition to the usual <?php ?> tags. Allow the <? tag - allow the <? tag, otherwise only <?php and <script> tags are recognized.
Output:
'Encode to a target directory' - click on browse and select an existing directory or type the full directory name manually. If the directory does not exist it will be created automatically. Since 4.2 only this method of output is allowed.
'Clear target directory' - select this if you want to clear all files/directories from the target directory. WARNING!!! All files and directories removed permanently - you cannot restore them via recycle bin.
Header options:
Add a custom message header at the top of every encoded file:
Prepend header code. You may put any code to be executed BEFORE the protected scripts code. This code WILL NOT BE ENCODED. This may be either HTML text or PHP code. For PHP code - you should use <?php ?> tags. This option is usually used for including copyrights into protected scripts.
Custom code when ixed loader not found:
It is possible for you to change the default loader error code. This option allows you to change the default error action of the protected script if it cannot find an appropriated ixed loader. The default action is just to print an error message "This script is protected by SourceGuardian™ and requires file ... " and stop executing. You may use any HTML text or PHP code here and it will be displayed or executed as a replacement to the default SourceGuardian™ loader error. This code WILL NOT BE ENCODED. This may be either HTML text or PHP code. For PHP code - you should use <?php ?> tags.
Do not append loader code
You may use this option if you don't want to include a default loader into the protected script. Any script encoded using this option will not be able to automatically find and load the appropriate ixed loader and you have to install the ixed loader manually to run this script. See the section about the manual ixed installation.
NOTE: if you select this option then Header options above have no effect (as they are placed inside this loader). |