The following procedure describes how to view your test pages from a web browser, after installing and configuring PHP and the SQL Anywhere PHP extension.
Restart your web server.
For example, to start the Apache web server, run the following command from the bin subdirectory of your Apache installation:
apachectl start |
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 | . /bin32/sa_config.sh |
csh or tcsh | source /bin32/sa_config.csh |
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.
dbeng12 "%SQLANYSAMP12%\demo.db" |
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... |
---|---|
info.php | http://localhost/info.php |
sa_test.php | http://localhost/sa_test.php |
If everything is configured correctly, the sa_test page displays the contents of the Employees table.
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |