How to check PHP loaders ability of the server?

Our product can now be run on two most often used encoders:
ZendGuard Loader (previously called as ZendOptimizer)
IonCube loader
 
We recommend to use IonCube Loader with Post Affiliate Pro / Post Affiliate Network since it will still work even when you upgrade your PHP version from 5.3 to 5.6 for example.
If you are running PHP 5.6 and you plan to upgrade to PHP 7 then use the "_ionEncoded7.zip" file which works for both versions and won't cause problems during PHP upgrade.
 
Important note: Always use binary mode when uploading files to your server using FTP.
 
ZendGuardLoader
Here you can download the latest version for your server:
With this type of encoder use product archive ending with "_zendEncoded53.zip" for PHP 5.3.x, "_zendEncoded54.zip" for PHP 5.4.x, "_zendEncoded55.zip" for PHP 5.5.x,  and "_zendEncoded56.zip" for PHP 5.6.x.
 
IonCube loader
Here you can download latest version for your server (feel free to use their installation wizzard for smoother installation):
With this type of encoder use product archive ending with "_ionEncoded53.zip" for PHP 5.3.x, 5.4.x, 5.5.x and 5.6.x. And for PHP 7.0 you need to use "_ionEncoded70.zip" (this file is working for PHP 5.6.x or PHP 7.0.x). And for PHP 7.1 you need to use "_ionEncoded71.zip" (this file is working only for PHP 7.1.x)
 
Note: If you are using FreeBSD operating system on PHP 5.3.x you can enable IonCube loader only.
 
Test script
You can use this script to check what encoders you have installed on your server. Just Create new file test.php on your server and paste this code in it:
 
<?php
echo "PHP version: <b>" . PHP_VERSION . "</b><br><br>";

if (PHP_MAJOR_VERSION == 4) {
    die('Not supported PHP version');
}

if (is_int(PHP_MAJOR_VERSION) && is_int(PHP_MINOR_VERSION) && PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 2) {
    die('PHP 5.2.x is Not supported anymore, due to security issues.');
}

$extensions = get_loaded_extensions();
echo "<i>Supported loaders:</i><br><br>";
if (in_array('Zend Guard Loader', $extensions)) {
    if (is_int(PHP_MAJOR_VERSION) && is_int(PHP_MINOR_VERSION) && PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 6) {
        echo "<b>ZendGuardLoader</b> - use product ZIP ending with '<b>_zendEncoded56.zip</b>' <br>";
    } else if (is_int(PHP_MAJOR_VERSION) && is_int(PHP_MINOR_VERSION) && PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 5) {
        echo "<b>ZendGuardLoader</b> - use product ZIP ending with '<b>_zendEncoded55.zip</b>' <br>";
    } else if (is_int(PHP_MAJOR_VERSION) && is_int(PHP_MINOR_VERSION) && PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 4) {
        echo "<b>ZendGuardLoader</b> - use product ZIP ending with '<b>_zendEncoded54.zip</b>' <br>";
    } else if (is_int(PHP_MAJOR_VERSION) && is_int(PHP_MINOR_VERSION) && PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 3) {
        echo "<b>ZendGuardLoader</b> - use product ZIP ending with '<b>_zendEncoded53.zip</b>' <br>";
    } else {
        echo "<b>ZendGuardLoader</b> - '<b>Not supported PHP version</b>' <br>";
    }
}
if (in_array('Zend Optimizer', $extensions)) {
    $isCorrectVersion = true;
    $zendOptimizerVer = '';
    if (function_exists('zend_optimizer_version')) {
        $zendOptimizerVer = zend_optimizer_version();
        $zendOptimizerMajorVer = (int) substr($zendOptimizerVer, 0, strpos($zendOptimizerVer, '.'));
        $zendOptimizerMinorPart = substr($zendOptimizerVer, strpos($zendOptimizerVer, '.') + 1);
        $zendOptimizerMinorVer = (int) substr($zendOptimizerMinorPart, 0, strpos($zendOptimizerMinorPart, '.'));
        if ($zendOptimizerMajorVer < 3 || ($zendOptimizerMajorVer == 3 && $zendOptimizerMinorVer < 3)) {
            $isCorrectVersion = false;
            echo 'Zend Optimizer ' . $zendOptimizerVer . ' - old, required is a minimum of Zend Optimizer version 3.3<br>';
        }
    }
    if ($isCorrectVersion) {
        echo "<b>Zend Optimizer</b>" . ($zendOptimizerVer != '' ? " (v$zendOptimizerVer)" : '') . " - use product ZIP ending with '<b>_zendEncoded52.zip</b>'<br>";
    }
}
if (in_array('ionCube Loader', $extensions)) {
    $isCorrectVersion = true;
    $ioncubeVersion = '';
    if (function_exists('ioncube_loader_version')) {
        $ioncubeVersion = ioncube_loader_version();
        $ioncubeMajorVersion = (int) substr($ioncubeVersion, 0, strpos($ioncubeVersion, '.'));
        $ioncubeMinorVersion = (int) substr($ioncubeVersion, strpos($ioncubeVersion, '.') + 1);
        if ($ioncubeMajorVersion < 6) {
            $isCorrectVersion = false;
            echo 'ionCube Loader ' . $ioncubeVersion . ' - old, required is a minimum of ionCube Loader version 6.0<br>';
        }
    }
    if ($isCorrectVersion) {
        if (!is_int(PHP_MAJOR_VERSION) || !is_int(PHP_MINOR_VERSION)) {
            die('Error: unable to decode php version');
        }
        if ((PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION == 0) || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 6)) {
            echo "<b>ionCube Loader</b>" . ($ioncubeVersion != '' ? " (v$ioncubeVersion)" : '') . " - use product ZIP ending with '<b>_ionEncoded70.zip</b>' (PHP 7.0.x or PHP 5.6.x)<br>";
        } else if (PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION == 1) {
                echo "<b>ionCube Loader</b>" . ($ioncubeVersion != '' ? " (v$ioncubeVersion)" : '') . " - use product ZIP ending with '<b>_ionEncoded71.zip</b>' (PHP 7.1.x)<br>";
        } else if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 3) {
            echo "<b>ionCube Loader</b>" . ($ioncubeVersion != '' ? " (v$ioncubeVersion)" : '') . " - use product ZIP ending with '<b>_ionEncoded53.zip</b>' (PHP 5.3.x - 5.6.x)<br>";
        } else {
            echo "<b>ionCube Loader</b>" . ($ioncubeVersion != '' ? " (v$ioncubeVersion)" : '') . " - '<b>Not supported PHP version</b>' (All PHP 5.2.X versions)<br>";
        }
    }
}

//version 2.0

//Note: Always use binary mode when uploading files to your server using FTP

//PLEASE DELETE THIS SCRIPT AFTER INSTALLATION!
?>
 
This script will print out supported loaders. For more info check your phpinfo. Create script info.php and paste this code in it:
 
<?php
phpinfo();
?>
 
Try to find some traces about ZendGuardLoader or IonCube loader there...