The following procedure describes how to view your test pages from a web browser, after installing and configuring PHP and the SQL Anywhere PHP module.
Restart your web server.
For example, to start the Apache web server, run the following command from the bin subdirectory of your Apache installation:
On Linux or Mac OS X, set the SQL Anywhere environment variables using one of the supplied scripts.
Depending on which shell you are using, enter the appropriate command to source the SQL Anywhere configuration script from your SQL Anywhere installation directory:
|In this shell ...||... use this command|
|sh, ksh, or bash|| |
|csh or tcsh|| |
Start the SQL Anywhere database server.
For example, to access the test web pages described above, use the following command to start the SQL Anywhere sample database.
You may have to specify the location of the SQL Anywhere sample database on the command line.
To access the test pages from a browser that is running on the same computer as the server, enter the following URLs:
|For this test page ...||... use this URL|
If everything is configured correctly, the sa_test page displays the contents of the Employees table.