Deploying PHP clients

To deploy the SQL Anywhere PHP extension, you must install the following components on the target platform:

  • The PHP 5 binaries for your platform, which are available for download at [external link] http://www.php.net. For Windows platforms, the thread-safe version of PHP must be used with the SQL Anywhere PHP extension.

  • A web server such as Apache HTTP Server if you want to run PHP scripts within a web server.

    SQL Anywhere can be run on the same computer as the web server, or on a different computer.

  • SQL Anywhere provides prebuilt PHP extensions for PHP versions 5.1.1 to 5.2.11 and 5.3.0 to 5.3.2. At the time of writing, PHP version 5.2.11 and 5.3.2 were the most recent stable releases.

  • Supporting SQL Anywhere shared objects or libraries.

The following table summarizes the files required for PHP clients.

Description Windows Linux / Unix Mac OS X
PHP installation (third-party) php.exe php php
PHP 5.1.x calls php-5.1.[1-6]_sqlanywhere_extenv12.dll php-5.1.[1-6]_sqlanywhere_extenv12_r.so or build from source code Build from source code
PHP 5.2.x calls php-5.2.[0-11]_sqlanywhere_extenv12.dll php-5.2.[0-11]_sqlanywhere_extenv12_r.so or build from source code Build from source code
PHP 5.3.x calls php-5.3.[0-2]_sqlanywhere_extenv12.dll php-5.3.[0-2]_sqlanywhere_extenv12_r.so or build from source code Build from source code
SQL Anywhere C API runtime dbcapi.dll libdbcapi_r.so libdbcapi_r.dylib
DBLIB (threaded) dblib12.dll libdblib12_r.so libdblib12_r.dylib
Thread support library N/A libdbtasks12_r.so libdbtasks12_r.dylib
optional encryption support dbecc12.dll libdbecc12_r.so libdbecc12_r.dylib
optional encryption support dbfips12.dll libdbfips12_r.so libdbfips12_r.dylib
optional encryption support dbrsa12.dll libdbrsa12_r.so libdbrsa12_r.dylib
Language resource library dblg[LL]12.dll dblg[LL]12.res dblg[LL]12.res
Connect window dbcon12.dll N/A N/A
 Notes

For additional information about installing PHP, see [external link] http://www.sybase.com/detail?id=1057714.

The following sections provide assistance with installing the SQL Anywhere PHP extension.


Choosing which PHP extension to use
Installing the PHP extension on Windows
Installing the PHP extension on Linux/Solaris
Building the PHP extension on Unix and Mac OS X
Configuring the SQL Anywhere PHP extension