You can build the PHP extension using the steps described here.
The following is a list of software you must have on your system to build the PHP extension on Unix and Mac OS X:
The SQL Anywhere PHP extension source code. This code is included in the SQL Anywhere software install under sdk/php.
The PHP development package (php5-dev) which can be downloaded and installed from the PHP web site.
You must have the same access privileges as the person who installed PHP to perform certain steps of the installation. Most Unix-based systems offer a sudo command that allows users with insufficient permissions to execute certain commands as a user with the right to execute them.
Under Bourne shell and its derivatives, the name of this command is . (a single period). For example, if SQL Anywhere is installed in /opt/sqlanywhere17, the following statement sources sa_config.sh (use bin32 for 32-bit environments):
For example, on a Mac, run the following command to source sa_config.sh:
Under C-shell and its derivatives, the command is source. For example, if SQL Anywhere is installed in /opt/sqlanywhere17, the following command sources sa_config.csh (use bin32 for 32-bit environments):
$ phpize $ ./configure --with-sqlanywhere $ make $ make test $ sudo make install
enable_dl = On
$ php -i | grep extension_dir $ ls <extension_dir>
If you are unsuccessful in building the PHP extension, keep track of the output of these commands and post it to the SQL Anywhere Forum for assistance.