Product Documentation

FairCom SQL for PHP

Previous Topic

Next Topic

Run the SQL PHP Tutorials with Microsoft IIS

c-treeACE PHP SQL includes a set of tutorials intended for use with the PHP 5 extension.To install and execute the SQL PHP tutorials with Microsoft Internet Information Service (IIS), be sure to install IIS and PHP 5.x.x as described in the previous sections. Next, you will need to copy the tutorials files into the IIS root directory as shown in this section.

Configure the FairCom DB PHP Extension

  1. Copy the contents of the c-tree PHP SQL “tutorials” directory into the C:\inetpub\wwwroot directory. Note that this will require Administrator privileges. The files should come from the following location, where <basedir> is your c-tree installation folder:
    c-treeACE: <basedir>\sdk\sql.php\tutorials
    c-treeRTG: <basedir>\Driver\sql.php\tutorials
    c-treeEDGE, FairCom-DB, FairCom-EDGE, FairCom-RTG: <basedir>\drivers\php.sql\tutorials
  2. Open your favorite web browser and connect to http://localhost. You should see the index.htm page with hyperlinks to the three tutorials to be executed:
    Note that on some systems, you might have to use this URL instead: http://localhost/index.htm

  3. Click on the tutorial hyperlinks to execute the tutorials. The first tutorial looks like this:


Note that if it shows the following error, it usually means the FairCom Database Engine is not running on your machine. The most likely cause is that the c-tree evaluation license times out after 3 hours and shuts down the server. The solution is to restart the server. See the Setup section for how to do this.

Logon to server...

ctsql_connect() - SQL ERROR: [-20212] - Error in Network Daemon

TOCIndex