cvs: phpdoc /en/functions fbsql.xml

From: Date: Wed, 09 May 2001 18:53:07 +0000
Subject: cvs: phpdoc /en/functions fbsql.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969335216@lists.php.net to get a copy of this message
fmk Wed May 9 11:53:07 2001 EDT Modified files: /phpdoc/en/functions fbsql.xml Log: Port numbers is not allowed when specifying the host name, but a specific port number can be specified as insted of the database name. Index: phpdoc/en/functions/fbsql.xml diff -u phpdoc/en/functions/fbsql.xml:1.3 phpdoc/en/functions/fbsql.xml:1.4 --- phpdoc/en/functions/fbsql.xml:1.3 Wed May 9 11:12:22 2001 +++ phpdoc/en/functions/fbsql.xml Wed May 9 11:53:07 2001 @@ -1088,7 +1088,7 @@ <programlisting role="php"> &lt;?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,17 +1451,11 @@ <para> <function>fbsql_pconnect</function> establishes a connection to a FrontBase server. The following defaults are assumed for - missing optional parameters: <parameter>host:port</parameter> = - 'localhost:3306', <parameter>username</parameter> = name of the - user that owns the server process and - <parameter>password</parameter> = empty password. + missing optional parameters: <parameter>host</parameter> = + 'localhost', <parameter>username</parameter> = "_SYSTEM" + and <parameter>password</parameter> = empty password. </para> <para> - The hostname string can also include a port - number. eg. &quot;hostname:port&quot; or a path to a socket - eg. &quot;:/path/to/socket&quot; for the localhost. - </para> - <para> <function>fbsql_pconnect</function> acts very much like <function>fbsql_connect</function> with two major differences. </para> @@ -1660,6 +1654,14 @@ called, and use it. </para> <para> + 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=<port number> <database name>. + </para> + <para> Every subsequent call to <function>fbsql_query</function> will be made on the active database. </para> @@ -1695,7 +1697,7 @@ <title><function>fbsql_tablename</function> example</title> <programlisting role="php"> &lt;?php -fbsql_connect ("localhost:3306"); +fbsql_connect ("localhost", "_SYSTEM", ""); $result = fbsql_list_tables ("wisconsin"); $i = 0; while ($i &lt; fbsql_num_rows ($result)) {

« previous php.doc (#969335216) next »