From 55028f61105ef5d42d380bddca510b687ebdf044 Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Wed, 9 May 2001 18:53:07 +0000 Subject: [PATCH] Port numbers is not allowed when specifying the host name, but a specific port number can be specified as insted of the database name. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@46969 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/fbsql.xml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/functions/fbsql.xml b/functions/fbsql.xml index a034d81dd2..dad03cb13e 100644 --- a/functions/fbsql.xml +++ b/functions/fbsql.xml @@ -1088,7 +1088,7 @@ password <?php -fbsql_connect ("localhost:3306"); +fbsql_connect ("localhost", "_SYSTEM", ""); fbsql_select_db ("wisconsin"); $result = fbsql_query ("SELECT * FROM onek"); $fields = fbsql_num_fields ($result); @@ -1451,16 +1451,10 @@ echo "$num_rows Rows\n"; fbsql_pconnect establishes a connection to a FrontBase server. The following defaults are assumed for - missing optional parameters: host:port = - 'localhost:3306', username = name of the - user that owns the server process and - password = empty password. + missing optional parameters: host = + 'localhost', username = "_SYSTEM" + and password = empty password. - - The hostname string can also include a port - number. eg. "hostname:port" or a path to a socket - eg. ":/path/to/socket" for the localhost. - fbsql_pconnect acts very much like fbsql_connect with two major differences. @@ -1659,6 +1653,14 @@ $result = fbsql_query ("SELECT my_col FROM my_tbl") establish a link as if fbsql_connect was called, and use it. + + The client contacts FBExec to obtain the port number to use for + the connection to the database. if the database name is a number + the system will use that as a port number and it will not ask + FBExec for the port number. + The FrontBase server can be stared as + FRontBase -FBExec=No -port= . + Every subsequent call to fbsql_query will be made on the active database. @@ -1695,7 +1697,7 @@ $result = fbsql_query ("SELECT my_col FROM my_tbl") <function>fbsql_tablename</function> example <?php -fbsql_connect ("localhost:3306"); +fbsql_connect ("localhost", "_SYSTEM", ""); $result = fbsql_list_tables ("wisconsin"); $i = 0; while ($i < fbsql_num_rows ($result)) {