Custom Scripts

This directory is used to store PHP files for any customization work done on your site. This directory will have an active folder and a backup folder for each PHP version supported in the site.

Active Scripts

When the admin selects the custom scripts directory from the Switch to drop down list, all the active scripts with their PHP version will be displayed. The admin will have the option to filter the scripts by the PHP version.

Activating a Script in a Specific Version

When the admin chooses a specific PHP version folder, all the scripts in that folder will be displayed.

  • A green tick symbol besides the script name indicates that the file is active in that particular version.
  • When the script with the same name is present in more than one PHP version folder, the script will be active in only one of the PHP version.
  • To activate the script in a specific PHP version, the admin should choose the specific PHP version folder from the Switch to drop-down list and click the green flag in the Action column.

Migrating a Script to a Specific Version

The File Manager provides the ability to copy or move a script from one version of PHP to another version of PHP.

Procedure

  1. Choose the specific PHP version folder from the Switch to drop-down.
  2. Click the pages icon in the Action column for the script of interest.
  3. Choose Copy or Move action and choose the PHP <version>/custom folder from the drop-down.
  4. Provide a name for the script.
    Note: By default, the name of the script will be prefixed with 'copy_'.
  5. Provide a comment, if needed, and click Save.

Results

Choose the target PHP version folder from the Switch to drop-down and verify the script.

The scripts in the target PHP version folder are deactivated by default. Follow the steps provided in the Activating a Script in a Specific Version section to activate the script.