Make sure the environment is set up for SQL Anywhere.
For instructions on setting up the environment for SQL Anywhere, follow the instructions in step 4 of Compiling PHP as an Apache module.
Configure PHP as a CGI executable and with the SQL Anywhere PHP module.
Execute the following command from the directory where your PHP files were extracted:
$ cd PHP-source-directory $ ./configure --with-sqlanywhere |
For example:
$ cd ~/php-5.2.6/
$ ./configure --with-sqlanywhere |
The configuration script will try to determine the version and location of your SQL Anywhere installation. If you examine the output of this command, you should see lines similar to the following:
checking for SQL Anywhere support... yes checking SQL Anywhere install dir... /opt/sqlanywhere10 checking SQL Anywhere version... 9 |
Compile the executable:
$ make |
Install the components.
$ make install |
For information about testing and using PHP, see Running PHP test scripts in your web pages.
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |