You are here: Zend Guard User Guide > Tabs > XML Editing Tab

XML Editing Tab

This tab opens and displays the entire XML configuration file in editable format. All options can be viewed and edited manually, if required.

Note:

Please take human error into consideration when editing the XML file and check that there are no mistakes that could cause encoding to fail.

 

 

Instructions on how to complete a procedure

To generate an XML file:

  1. In the General Tab click the Link "Export Parameters File"
    The "Parameters File" dialog will open.

  2. Select a project from the list.

  3. In the "Select the export destination" section name the file (without an extension correct: parameters incorrect parameters.xml) and click browse to specify the location for storing the file.

  4. Click Finish to start generating the file.

  5. Check the suggestions to be used, the others will be discarded automatically.**

Once the file has been created it can be run with the command line to secure PHP code. This can be done on the local machine or on another machine, see below for more information on how to encode PHP files with the XML file.

 

 

The XML editing option allows in one simple step, to encode projects that contain several encoding options. This includes different PHP versions and different levels of encoding. The XML is in essence a single file that contains different settings to be applied to different files and folders in the project.

 

When choosing the Option "Override Project Information" (located in the General Tab) the information collected in the "General Tab" is exported to an XML file. This file can then be used to encode code located on a different machine. The XML Editor included in the Zend Guard provides editing options to modify the XML file if necessary.

Encoding External code using the XML File

As we mentioned earlier, the XML output generated by the Zend Guard, can be used to encode files with the command line on this or on another machine.

 

 

Instructions on how to complete a procedure

To Encode using the command line (and the XML File):

  1. Create the XML file.

  2. If you are using a remote machine transfer the XML file and your exclude list file to the machine.

  3. Move the XML file and the Encoder files located in the Zend Guard's installation directory (Zend\ZendGuard-<Your Product Verson>\plugins\com.zend.guard.core.resources.<Your OS>\resources).

  4. After arranging all the files activate the Encoder from the command line with the following command:
    GuardEngine -- XML-FILE <Path to XML File>.

The settings defined in the file will be applied to the PHP code, including input and output directory locations. Therefore, you may want to manually edit the file if it is on a different machine to define the different file locations.

 

 

Related links

Related Links:
Exclude Tab

Tabs

Encoding

Obfuscation

©1999-2013 Zend Technologies LTD. All rights reserved.