Features | Requirements | Admin Demo | Support Affiliate Program | Forums | Sites in Action | Purchase 
 PhotoPost PHP ionCube Loader Instructions

The time-limited version of PhotoPost PHP Pro is encoded with the ionCube encoder, which requires a special "loader" program to run the PHP scripts. We have bundled the loaders in the ionCube directory of the PhotoPost zip archive, and PhotoPost is designed to automatically use the appropriate loader whenever possible.

Some servers don't support this automatic process, however, and we're providing the following text so that you can manually install the appropriate loader on your server if you receive the message, "The file somefile.php has been encoded with the ionCube PHP Encoder and requires the free ionCube PHP Loader to be installed."

* INSTALLING LOADER IN PHP.INI - THE INSTALL ASSISTANT

Installing in the php.ini file is also simple, offers the best performance for encoded scripts, and is required for systems using safe mode or if PHP has been built with thread support, e.g. windows or some Apache 2 installs.

The 'ioncube-install-assistant.php' script in the ioncube directory can be used to tell you exactly what you need to install and where. Just access this from your web browser or a php-cli binary 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 want to install without using the assistant script, please read the next section.

* INSTALLING IN PHP.INI EXPLAINED

Firstly you need to know:

1) Which operating system you are using

2) Which PHP version you are running

3) Is your PHP build threaded or not? If using Apache 1 it shouldn't be. If using Apache 2 with PHP 4.2.x then it probably is. If using Apache 2 with PHP 4.3 then it may not be.

4) Where your php.ini file is.

phpinfo will give you the above information.

* If using UNIX


If your PHP is not threaded, you need a loader called:

   ioncube_loader__.so

If your PHP is threaded, you need a loader called:

   lioncube_loader___ts.so

will be 'lin' for Linux, 'fre' for FreeBSD, and 'sun' for Solaris

will be 4.0, 4.1, 4.2 or 4.3 - i.e the first 2 digits of your PHP version

Finally edit your php.ini file, and before any other zend_extension entries, for non-threaded PHP add:

   zend_extension = //ioncube_loader__.so

and for threaded PHP add:

   zend_extension_ts = //ioncube_loader___ts.so

Replace and with whatever is right for your system, and with the path to where the loader is installed, e.g. /usr/local/ioncube

Examples

For 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

After modifying php.ini, restart your web server.

* If using Windows


You need a loader called

   ioncube_loader_win_.dll

will be 4.1, 4.2 or 4.3 - i.e the first 2 digits of your PHP version.

Edit your php.ini file and add:

   zend_extension_ts = :\\ioncube_loader_win_.dll

where and locate the loader, and is whatever the correct value is for your system.

e.g.

   zend_extension_ts = c:\WINNT\ioncube_loader_win_4.3.dll

After modifying php.ini, restart your web server.