| |||||||
![]() | |||||||
A Loader file is required to read PHP scripts encoded with the ionCube Encoder. There are two ways to use this file, requiring different installation methods: run-time Loading and via the php.ini file.Explanation of terminologyThe Loader is a .dll file or .so file (depending on the server's operating system) which PHP uses to decode scripts encoded with the ionCube Encoder. PHP has the ability to open .dll (or .so) files at the moment a script is run. The dl function in PHP is used for this purpose. This mechanism, when used to launch the ionCube Loader, is called run-time loading. When the web server first launches PHP, a configuration file called php.ini is read. It is possible to add a line to this file to instruct PHP to load the ionCube Loader. We shall explain how to install Loaders using both of these methods in the following sections. Run-time Loading InstallationThe run-time loading method is the easiest way to run encoded files, and lets encoded files locate and install the correct Loader when needed. Provided that run-time loading is supported on the target system, encoded scripts and Loaders can be bundled together without the user having to install any Loader or update their system configuration, and without having to know about the PHP version or operating system used. For run-time loading to work, a directory called 'ioncube' containing the Loaders should be placed in or above the top directory of encoded files. For example, if you have encoded files in or below '/var/www/htdocs/', you might place the 'ioncube' directory in '/var/www/htdocs' or '/var/www'. If you have an application or library to distribute, you could place the ioncube directory within the top directory Troubleshooting Run-time LoadingIf encoded files fail to run with run-time loading, you can test this by using the helper PHP script 'ioncube-loader-helper.php' that's included in the Loader download archive.
Using the ionCube Install AssistantInstalling in the php.ini file is also simple, and offers the best performance for encoded scripts. It is also required for systems that use safe mode, or if PHP has been built with thread support, e.g. on Windows. The 'php.ini Install Assistant' link on the installation helper PHP script is provided to assist with this. Access the script from a web server or a PHP cli or cgi executable and it should tell you which Loader to install, which file to edit and what you need to add (it's just a one line change). If you wish to install without using the assistant script then please read the following section. Manual Installation in the php.ini FileBefore installing, you need to know:
The 'Server System Information' link in the helper script will give you the required information. ExampleSuppose the following information is contained in the sysinfo.php script output:
This shows that:
Using this information we may install the Loaders. The method depends on whether your server is running Unix (e.g. Linux) or Windows. Installation on a Unix ServerIf your PHP is not threaded you need a Loader called: ioncube_loader_ If your PHP is threaded you need a Loader called: ioncube_loader_ Edit your php.ini file and for non-threaded PHP add: zend_extension = / and for threaded PHP add: zend_extension_ts = / Replace If there are other zend_extension entries in the php.ini file place this new entry before the existing entries. For example, with Linux running PHP 4.1.2 and Apache 1, you might add: zend_extension = /usr/local/ioncube/ioncube_loader_lin_4.1.so For FreeBSD running threaded PHP 4.3.1 with Apache 2, you might add: zend_extension_ts = /usr/local/ioncube/ioncube_loader_fre_4.3_ts.so Installation on a Windows ServerYou need a Loader called: ioncube_loader_win_ Edit your php.ini file and add: zend_extension_ts = " where i.e. zend_extension_ts = c:\WINNT\ioncube_loader_win_4.3.dll |
|||||||
Having trouble? Common questions and answers can be found in our FAQ sections. For questions regarding the Loader, please see our separate Loaders FAQ. Support is available Monday - Friday 6:00am - 6:00pm EST E-mail: Click here Further Support: Click here ![]()
|
|||||||
|
Copyright 2005 - 2007 Calm Development LLC. All rights reserved. About CalmDev | Terms of Service | Privacy Policy | Affiliates |