List & Label PHP Sample

Valid from List & Label 14
This article describes how to use List & Label with PHP. Basic requirement is a web server that is running Windows, has PHP5 installed and allows access to "php.ini" and the PHP "ext" folder.

The sample provided with the installation uses a custom PHP extension. You'll find all required sources as well as a basic print loop.

In order to compile the DLL you need Microsoft VS2005 or newer and the PHP sources available for free from http://php.net. Consult the readme.txt from the attached ZIP for information where to copy these files.

If you should encounter the following error during compilation: "Error C3163: '_vsnprintf': attributes inconsistent with previous declaration"
locate the following lines in "zend_config.w32.h":
#define snprintf _snprintf
#define vsnprintf _vsnprintf


and replace them with:

#if not defined(_MSC_VER) || defined(__MINGW32__)
#define snprintf _snprintf
#define vsnprintf _vsnprintf
#endif 


The compiled “php_listlabel.dll” needs to be copied to the PHP extension folder “ext” and added to the php.ini. Simply add the following line: “extension=php_listlabel.dll;”.

In order to run the sample, just copy the “websample” folder to your webserver and assign the CHMOD 777 to the “frame.php” file and the “tmp” folder.

Please note that you need an addendum to the license agreement in order to use List & Label in this way.

IDKBTE000730 KBTE000730