Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » SQL Anywhere PHP API

SQL Anywhere PHP API Next Page

Introduction to the SQL Anywhere PHP module

PHP, which stands for Hypertext Preprocessor, is an open source scripting language. Although it can be used as a general-purpose scripting language, it was designed to be a convenient language in which to write scripts that could be embedded with HTML documents. Unlike scripts written in JavaScript, which are frequently executed by the client, PHP scripts are processed by the web server, and the resulting HTML output sent to the clients. The syntax of PHP is derived from that of other popular languages, such as Java and Perl.

To make it a convenient language in which to develop dynamic web pages, PHP provides the ability to retrieve information from many popular databases, such as SQL Anywhere. Included with SQL Anywhere are two modules that provide access to SQL Anywhere databases from PHP. You can use these modules and the PHP language to write stand-alone scripts and create dynamic web pages that rely on information stored in SQL Anywhere databases.

The PHP functionality is provided by a DLL on 32-bit Windows versions of SQL Anywhere, and by a shared object on Linux for x86. Source code for the SQLAnywhere PHP module is installed in the src\php subdirectory of your SQL Anywhere installation. Prebuilt versions are installed in the operating-system-specific binaries subdirectory of your SQL Anywhere installation.


Before you can use the SQL Anywhere PHP module, you must install the following components: