Download RW NetServer
Transcript
40 RW NetServer Use php5_kbmmw.dll for PHP 5. Building the PHP extension On Linux the extension is compiled into the executable, while it is a seperate dll on windows. Make sure that you have the following installed: Full PHP development package for PHP v.4.2.x or newer. Full C development SDK matching your system (GCC primarly supported by PHP). libtool v. 1.4.x (not 1.5.x as that wont work with the standard PHP building procedures. Please notice that PHP automatically generates a local symbolic link to /usr/local/bin/libtool which is placed in PHP's root directory.) automake v. 1.5 Autoconf v. 2.13 (earlier versions have problems with cleaning up its cache properly. To circumvent, delete the contents of the autom4te.cache directory before doing buildconf.) kbmMW pure C-client. The include files must be placed in /usr/include/kbmmw and the library file libkbmMWClient.a must be placed in /usr/lib/kbmmw kbmMW PHP extension. This must be placed in a directory named kbmmw in the PHP subdirectory ext When these prerequisites are in place, configuration of PHP with kbmMW can begin. Usually it is required to be root to succeed with the PHP configuration. First optionally clean the files from the autom4te.cache directory in the PHP install directory. ./buildconf --force Will generate the configuration scripts needed by the build process. ./configure --enable-kbmmw Will generate the compile scripts needed to compile PHP with kbmMW extension support. More extensions can be given on the command line. make Will compile PHP and the required extensions (in our case including the kbmMW extension). Sample See the PHP/sample folder for an example of a PHP client. More documentation Find more documentation at: http://www.components4programmers.com/downloads/kbmmw/documentation/ kbmMW_PHP_client.pdf 2.5.7 Python The python client allows you to access RW NetServer directly from Python 2 and 3. If you are going to use it with Python 2, it is important that you add the enum.py packpage to python 2 lib folder. Find it at: https://pypi.python.org/pypi/enum34 or use the version we have included. Tested with python 2.7.7 and 3.4.1 © 2014 RouteWare / Uffe Kousgaard