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">
<?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. "hostname:port" or a path to a socket
- eg. ":/path/to/socket" 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">
<?php
-fbsql_connect ("localhost:3306");
+fbsql_connect ("localhost", "_SYSTEM", "");
$result = fbsql_list_tables ("wisconsin");
$i = 0;
while ($i < fbsql_num_rows ($result)) {