Choosing which PHP extension to use

On Windows, SQL Anywhere includes thread-safe extensions for PHP versions 5.1.1 to 5.2.11 and 5.3.0 to 5.3.2. A thread-safe version of PHP must be used with the SQL Anywhere PHP extension. The extension file names for the supported PHP versions follow this pattern:

php-5.x.y_sqlanywhere.dll

On Linux and Solaris, SQL Anywhere includes both 64-bit and 32-bit versions of the extensions for PHP versions 5.1.1 to 5.2.11 and 5.3.0 to 5.3.2. It also includes both threaded and non-threaded extensions. If you are using the CGI version of PHP or if you are using Apache 1.x, use the non-threaded extension. If you are using Apache 2.x, use the threaded extension. The extension file names for the supported PHP versions follow this pattern:

php-5.x.y_sqlanywhere[_r].so

The "5.x.y" represents the PHP version (for example, 5.2.11). For Linux and Solaris, the threaded version of the PHP extension has _r appended to the file name. Windows versions are implemented as Dynamic Link Libraries and Linux/Solaris versions are implemented as Shared Objects. If you are using a later version of PHP, then you can check the Internet for the latest SQL Anywhere PHP drivers at [external link] http://www.sybase.com/detail?id=1019698.