How to use

Once you downloaded a copy of the phpOpenLib you can begin to use it. To start you need to extract the TAR GZIP package. For Windows users you can simply extract them with WinRAR.

On Unix hosts you can extract them either by using a graphical user interface like GNOME as well with the command line interface using this command:

Extracting the package using a Shell
tar xzvf phpopenlib-xxx.tar.gz
(replace phpopenlib-xxx.tar.gz with the name of the package you downloaded)

The package contains at least 2 files. The first file is named LICENSE which contains the full General Public License v3. If you not agree the terms and conditions of this license you are not allowed to use phpOpenLib.

The second file is the function set. It is named “class.phpopenlib.php”. You can copy this file to your script location and include the file to your PHP project by adding this code to your PHP project file:

<?php include “class.phpopenlib.org”; ?>

Now your’e done installing the library. Quite easy huh? Next you can start using the function set. Just by opening the class.phpopenlib.php file you can review which functions are available.

To verify that phpOpenLib is installed correct you can try to use one of the functions for example:

print checkOpenLib();

If this returns “phpOpenLib is active!” to your display then phpOpenLib is correctly installed.

Comments are closed.