[PHP-DOC] cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml mysql-pconnect.xml
vrana Thu Jun 7 14:40:13 2007 UTC Modified files: /phpdoc/en/reference/mysql/functionsmysql-connect.xml mysql-pconnect.xml Log: LOAD DATA LOCAL client flag http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/functions/mysql-connect.xml?r1=1.20r2=1.21diff_format=u Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.20 phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.21 --- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.20 Wed Oct 11 10:04:41 2006 +++ phpdoc/en/reference/mysql/functions/mysql-connect.xml Thu Jun 7 14:40:13 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.20 $ -- +!-- $Revision: 1.21 $ -- refentry id=function.mysql-connect refnamediv refnamemysql_connect/refname @@ -83,6 +83,7 @@ para The parameterclient_flags/parameter parameter can be a combination of the following constants: + 128 (enable literalLOAD DATA LOCAL/literal handling), constantMYSQL_CLIENT_SSL/constant, constantMYSQL_CLIENT_COMPRESS/constant, constantMYSQL_CLIENT_IGNORE_SPACE/constant or http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/functions/mysql-pconnect.xml?r1=1.11r2=1.12diff_format=u Index: phpdoc/en/reference/mysql/functions/mysql-pconnect.xml diff -u phpdoc/en/reference/mysql/functions/mysql-pconnect.xml:1.11 phpdoc/en/reference/mysql/functions/mysql-pconnect.xml:1.12 --- phpdoc/en/reference/mysql/functions/mysql-pconnect.xml:1.11 Thu Dec 1 10:05:52 2005 +++ phpdoc/en/reference/mysql/functions/mysql-pconnect.xml Thu Jun 7 14:40:13 2007 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.11 $ -- +!-- $Revision: 1.12 $ -- refentry id=function.mysql-pconnect refnamediv refnamemysql_pconnect/refname @@ -92,6 +92,7 @@ para The parameterclient_flags/parameter parameter can be a combination of the following constants: + 128 (enable literalLOAD DATA LOCAL/literal handling), constantMYSQL_CLIENT_SSL/constant, constantMYSQL_CLIENT_COMPRESS/constant, constantMYSQL_CLIENT_IGNORE_SPACE/constant or
[PHP-DOC] cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml
vrana Wed Oct 11 10:04:41 2006 UTC Modified files: /phpdoc/en/reference/mysql/functionsmysql-connect.xml Log: SQL safe mode http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/functions/mysql-connect.xml?r1=1.19r2=1.20diff_format=u Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.19 phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.20 --- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.19 Thu Dec 1 10:05:52 2005 +++ phpdoc/en/reference/mysql/functions/mysql-connect.xml Wed Oct 11 10:04:41 2006 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.19 $ -- +!-- $Revision: 1.20 $ -- refentry id=function.mysql-connect refnamediv refnamemysql_connect/refname @@ -36,7 +36,8 @@ para If the PHP directive link linkend=ini.mysql.default-host mysql.default_host/link is undefined (default), then the default - value is 'localhost:3306' + value is 'localhost:3306'. In sqlsafemode;, this parameter is ignored + and value 'localhost:3306' is always used. /para /listitem /varlistentry @@ -44,8 +45,10 @@ termparameterusername/parameter/term listitem para - The username. Default value is the name of the user that owns the - server process. + The username. Default value is defined by link + linkend=ini.mysql.default-usermysql.default_user/link. In + sqlsafemode;, this parameter is ignored and the name of the user that + owns the server process is used. /para /listitem /varlistentry @@ -53,7 +56,9 @@ termparameterpassword/parameter/term listitem para - The password. Default value is an empty password. + The password. Default value is defined by link + linkend=ini.mysql.default-passwordmysql.default_password/link. In + sqlsafemode;, this parameter is ignored and empty password is used. /para /listitem /varlistentry @@ -68,6 +73,7 @@ behavior and makes functionmysql_connect/function always open a new link, even if functionmysql_connect/function was called before with the same parameters. + In sqlsafemode;, this parameter is ignored. /para /listitem /varlistentry @@ -82,6 +88,7 @@ constantMYSQL_CLIENT_IGNORE_SPACE/constant or constantMYSQL_CLIENT_INTERACTIVE/constant. Read the section about xref linkend=mysql.client-flags / for further information. + In sqlsafemode;, this parameter is ignored. /para /listitem /varlistentry
[PHP-DOC] cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml mysql-pconnect.xml
vrana Thu Dec 1 05:05:55 2005 EDT Modified files: /phpdoc/en/reference/mysql/functionsmysql-connect.xml mysql-pconnect.xml Log: MYSQL_CLIENT_SSL http://cvs.php.net/diff.php/phpdoc/en/reference/mysql/functions/mysql-connect.xml?r1=1.18r2=1.19ty=u Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.18 phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.19 --- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.18 Mon Oct 3 11:31:51 2005 +++ phpdoc/en/reference/mysql/functions/mysql-connect.xml Thu Dec 1 05:05:52 2005 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.18 $ -- +!-- $Revision: 1.19 $ -- refentry id=function.mysql-connect refnamediv refnamemysql_connect/refname @@ -77,6 +77,7 @@ para The parameterclient_flags/parameter parameter can be a combination of the following constants: + constantMYSQL_CLIENT_SSL/constant, constantMYSQL_CLIENT_COMPRESS/constant, constantMYSQL_CLIENT_IGNORE_SPACE/constant or constantMYSQL_CLIENT_INTERACTIVE/constant. http://cvs.php.net/diff.php/phpdoc/en/reference/mysql/functions/mysql-pconnect.xml?r1=1.10r2=1.11ty=u Index: phpdoc/en/reference/mysql/functions/mysql-pconnect.xml diff -u phpdoc/en/reference/mysql/functions/mysql-pconnect.xml:1.10 phpdoc/en/reference/mysql/functions/mysql-pconnect.xml:1.11 --- phpdoc/en/reference/mysql/functions/mysql-pconnect.xml:1.10 Wed Jun 22 06:39:09 2005 +++ phpdoc/en/reference/mysql/functions/mysql-pconnect.xml Thu Dec 1 05:05:52 2005 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.10 $ -- +!-- $Revision: 1.11 $ -- refentry id=function.mysql-pconnect refnamediv refnamemysql_pconnect/refname @@ -92,6 +92,7 @@ para The parameterclient_flags/parameter parameter can be a combination of the following constants: + constantMYSQL_CLIENT_SSL/constant, constantMYSQL_CLIENT_COMPRESS/constant, constantMYSQL_CLIENT_IGNORE_SPACE/constant or constantMYSQL_CLIENT_INTERACTIVE/constant.
[PHP-DOC] cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml
betzMon Oct 3 06:37:10 2005 EDT Modified files: /phpdoc/en/reference/mysql/functionsmysql-connect.xml Log: more examples for connecting with different syntax, link to client flags table, link to ini-setting http://cvs.php.net/diff.php/phpdoc/en/reference/mysql/functions/mysql-connect.xml?r1=1.16r2=1.17ty=u Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.16 phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.17 --- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.16 Mon Jun 20 23:05:09 2005 +++ phpdoc/en/reference/mysql/functions/mysql-connect.xml Mon Oct 3 06:37:09 2005 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.16 $ -- +!-- $Revision: 1.17 $ -- refentry id=function.mysql-connect refnamediv refnamemysql_connect/refname @@ -80,6 +80,7 @@ constantMYSQL_CLIENT_COMPRESS/constant, constantMYSQL_CLIENT_IGNORE_SPACE/constant or constantMYSQL_CLIENT_INTERACTIVE/constant. + Read the section about xref linkend=mysql.client-flags / for further information. /para /listitem /varlistentry @@ -156,6 +157,61 @@ /programlisting /example /para + para + example +titlefunctionmysql_connect/functionexample using literalhostname:port/literal syntax/title +programlisting role=php +![CDATA[ +?php +// we connect to example.com and port 3307 +$link = mysql_connect('example.com:3307', 'mysql_user', 'mysql_password'); +if (!$link) { +die('Could not connect: ' . mysql_error()); +} +echo 'Connected successfully'; +mysql_close($link); + +// we connect to localhost at port 3307 +$link = mysql_connect('127.0.0.1:3307', 'mysql_user', 'mysql_password'); +if (!$link) { +die('Could not connect: ' . mysql_error()); +} +echo 'Connected successfully'; +mysql_close($link); +? +]] +/programlisting + /example + /para + para + example +titlefunctionmysql_connect/functionexample using :/path/to/socket syntax/title +programlisting role=php +![CDATA[ +?php +// we connect to localhost and socket e.g. /tmp/mysql.sock + +//variant 1: ommit localhost +$link = mysql_connect('/tmp/mysql', 'mysql_user', 'mysql_password'); +if (!$link) { +die('Could not connect: ' . mysql_error()); +} +echo 'Connected successfully'; +mysql_close($link); + + +// variant 2: with localhost +$link = mysql_connect('localhost:/tmp/mysql.sock', 'mysql_user', 'mysql_password'); +if (!$link) { +die('Could not connect: ' . mysql_error()); +} +echo 'Connected successfully'; +mysql_close($link); +? +]] +/programlisting + /example + /para /refsect1 refsect1 role=notes @@ -168,7 +224,7 @@ Windows). If you want to use TCP/IP, use quot;127.0.0.1quot; instead of quot;localhostquot;. If the MySQL client library tries to connect to the wrong local socket, you should set the correct path as -mysql.default_host in your PHP configuration and leave the server field +xref linkend= ini.mysql.default-host / in your PHP configuration and leave the server field blank. /para /note
[PHP-DOC] cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml
jsgoupilMon Oct 3 11:31:53 2005 EDT Modified files: /phpdoc/en/reference/mysql/functionsmysql-connect.xml Log: add space between words + remove space in linkend http://cvs.php.net/diff.php/phpdoc/en/reference/mysql/functions/mysql-connect.xml?r1=1.17r2=1.18ty=u Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.17 phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.18 --- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.17 Mon Oct 3 06:37:09 2005 +++ phpdoc/en/reference/mysql/functions/mysql-connect.xml Mon Oct 3 11:31:51 2005 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.17 $ -- +!-- $Revision: 1.18 $ -- refentry id=function.mysql-connect refnamediv refnamemysql_connect/refname @@ -159,7 +159,7 @@ /para para example -titlefunctionmysql_connect/functionexample using literalhostname:port/literal syntax/title +titlefunctionmysql_connect/function example using literalhostname:port/literal syntax/title programlisting role=php ![CDATA[ ?php @@ -185,7 +185,7 @@ /para para example -titlefunctionmysql_connect/functionexample using :/path/to/socket syntax/title +titlefunctionmysql_connect/function example using :/path/to/socket syntax/title programlisting role=php ![CDATA[ ?php @@ -224,7 +224,7 @@ Windows). If you want to use TCP/IP, use quot;127.0.0.1quot; instead of quot;localhostquot;. If the MySQL client library tries to connect to the wrong local socket, you should set the correct path as -xref linkend= ini.mysql.default-host / in your PHP configuration and leave the server field +xref linkend=ini.mysql.default-host / in your PHP configuration and leave the server field blank. /para /note
[PHP-DOC] cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml
jsgoupilMon Jun 20 23:05:12 2005 EDT Modified files: /phpdoc/en/reference/mysql/functionsmysql-connect.xml Log: suppress similar sentences http://cvs.php.net/diff.php/phpdoc/en/reference/mysql/functions/mysql-connect.xml?r1=1.15r2=1.16ty=u Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.15 phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.16 --- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.15 Thu Mar 31 02:47:25 2005 +++ phpdoc/en/reference/mysql/functions/mysql-connect.xml Mon Jun 20 23:05:09 2005 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.15 $ -- +!-- $Revision: 1.16 $ -- refentry id=function.mysql-connect refnamediv refnamemysql_connect/refname @@ -17,9 +17,7 @@ methodparam choice=opttypeint/typeparameterclient_flags/parameter/methodparam /methodsynopsis para - Opens or reuses a connection to a MySQL server. The link to the server will - be closed as soon as the execution of the script ends, unless it's closed - earlier by explicitly calling functionmysql_close/function. + Opens or reuses a connection to a MySQL server. /para /refsect1
[PHP-DOC] cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml
philip Wed Mar 30 20:28:41 2005 EDT Modified files: /phpdoc/en/reference/mysql/functionsmysql-connect.xml Log: WS, preparation for the new doc style http://cvs.php.net/diff.php/phpdoc/en/reference/mysql/functions/mysql-connect.xml?r1=1.13r2=1.14ty=u Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.13 phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.14 --- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.13 Tue Sep 28 11:33:55 2004 +++ phpdoc/en/reference/mysql/functions/mysql-connect.xml Wed Mar 30 20:28:41 2005 @@ -1,99 +1,93 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.13 $ -- +!-- $Revision: 1.14 $ -- !-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -- - refentry id=function.mysql-connect - refnamediv -refnamemysql_connect/refname -refpurposeOpen a connection to a MySQL Server/refpurpose - /refnamediv - refsect1 -titleDescription/title - methodsynopsis - typeresource/typemethodnamemysql_connect/methodname - methodparam choice=opttypestring/typeparameterserver/parameter/methodparam - methodparam choice=opttypestring/typeparameterusername/parameter/methodparam - methodparam choice=opttypestring/typeparameter -password - /parameter/methodparam - methodparam choice=opttypebool/typeparameter -new_link - /parameter/methodparam - methodparam choice=opttypeint/typeparameter -client_flags - /parameter/methodparam - /methodsynopsis -para - Returns a MySQL link identifier on success, or false; on failure. -/para -para - functionmysql_connect/function establishes a connection - to a MySQL server. The following defaults are assumed for - missing optional parameters: parameterserver/parameter = - 'localhost:3306', parameterusername/parameter = name of the - user that owns the server process and - parameterpassword/parameter = empty password. -/para -para - The parameterserver/parameter parameter can also include a port - number. e.g. quot;hostname:portquot; or a path to a local socket - e.g. quot;:/path/to/socketquot; for the localhost. - note - para - Whenever you specify quot;localhostquot; or - quot;localhost:portquot; as server, the MySQL client library will - override this and try to connect to a local socket (named pipe on - Windows). If you want to use TCP/IP, use quot;127.0.0.1quot; - instead of quot;localhostquot;. If the MySQL client library tries to - connect to the wrong local socket, you should set the correct path as - mysql.default_host in your PHP configuration and leave the server field - blank. - /para - para - Support for quot;:portquot; was added in PHP 3.0B4. - /para - para - Support for quot;:/path/to/socketquot; was added in - PHP 3.0.10. - /para - para - You can suppress the error message on failure by prepending - a link linkend=language.operators.errorcontrol@/link - to the function name. - /para - /note -/para -para - If a second call is made to functionmysql_connect/function - with the same arguments, no new link will be established, but - instead, the link identifier of the already opened link will be - returned. The parameternew_link/parameter parameter modifies this - behavior and makes functionmysql_connect/function always open - a new link, even if functionmysql_connect/function was called - before with the same parameters. The parameterclient_flags/parameter - parameter can be a combination of the constants - constantMYSQL_CLIENT_COMPRESS/constant, - constantMYSQL_CLIENT_IGNORE_SPACE/constant or - constantMYSQL_CLIENT_INTERACTIVE/constant. -/para -note - para - The parameternew_link/parameter parameter became available - in PHP 4.2.0 - /para - para - The parameterclient_flags/parameter parameter became available in - PHP 4.3.0 - /para -/note -para - The link to the server will be closed as soon as the execution of - the script ends, unless it's closed earlier by explicitly calling - functionmysql_close/function. -/para -para - example - titlefunctionmysql_connect/function example/title - programlisting role=php +refentry id=function.mysql-connect + refnamediv + refnamemysql_connect/refname + refpurposeOpen a connection to a MySQL Server/refpurpose + /refnamediv + refsect1 + titleDescription/title + methodsynopsis + typeresource/typemethodnamemysql_connect/methodname + methodparam choice=opttypestring/typeparameterserver/parameter/methodparam + methodparam choice=opttypestring/typeparameterusername/parameter/methodparam + methodparam
[PHP-DOC] cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml
sas Thu Feb 20 06:20:35 2003 EDT Modified files: /phpdoc/en/reference/mysql/functionsmysql-connect.xml Log: Add note about bad special case in the mysql client lib which is quite irretating. Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.5 phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.6 --- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.5 Fri Jan 31 12:11:54 2003 +++ phpdoc/en/reference/mysql/functions/mysql-connect.xml Thu Feb 20 06:20:34 +2003 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.5 $ -- +!-- $Revision: 1.6 $ -- !-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -- refentry id=function.mysql-connect refnamediv @@ -39,9 +39,19 @@ /para para The parameterserver/parameter parameter can also include a port - number. eg. quot;hostname:portquot; or a path to a socket + number. eg. quot;hostname:portquot; or a path to a local socket eg. quot;:/path/to/socketquot; for the localhost. note + para + Whenever you specify quot;localhostquot; or + quot;localhost:portquot; as server, the MySQL client library will + override this and try to connect to a local socket (named pipe on + Windows). If you want to use TCP/IP, use quot;127.0.0.1quot; + instead of quot;localhostquot;. If the MySQL client library tries to + connect to the wrong local socket, you should set the correct path as + mysql.default_host in your PHP configuration and leave the server field + blank. + /para para Support for quot;:portquot; was added in PHP 3.0B4. /para -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml mysql-pconnect.xml
georg Fri Jan 31 12:11:54 2003 EDT Modified files: /phpdoc/en/reference/mysql/functionsmysql-connect.xml mysql-pconnect.xml Log: fixed bug #21981 (removed SSL constant) Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.4 phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.5 --- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.4 Sun Dec 1 21:09:30 2002 +++ phpdoc/en/reference/mysql/functions/mysql-connect.xml Fri Jan 31 12:11:54 +2003 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.4 $ -- +!-- $Revision: 1.5 $ -- !-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -- refentry id=function.mysql-connect refnamediv @@ -64,8 +64,9 @@ behavior and makes functionmysql_connect/function always open a new link, even if functionmysql_connect/function was called before with the same parameters. The parameterclient_flags/parameter - parameter can be a combination of the constants MYSQL_CLIENT_SSL, - MYSQL_CLIENT_COMPRESS, MYSQL_CLIENT_IGNORE_SPACE or MYSQL_CLIENT_INTERACTIVE. + parameter can be a combination of the constants + MYSQL_CLIENT_COMPRESS, MYSQL_CLIENT_IGNORE_SPACE or + MYSQL_CLIENT_INTERACTIVE. /para note para Index: phpdoc/en/reference/mysql/functions/mysql-pconnect.xml diff -u phpdoc/en/reference/mysql/functions/mysql-pconnect.xml:1.3 phpdoc/en/reference/mysql/functions/mysql-pconnect.xml:1.4 --- phpdoc/en/reference/mysql/functions/mysql-pconnect.xml:1.3 Wed Jul 10 11:34:25 2002 +++ phpdoc/en/reference/mysql/functions/mysql-pconnect.xml Fri Jan 31 12:11:54 +2003 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.3 $ -- +!-- $Revision: 1.4 $ -- !-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -- refentry id=function.mysql-pconnect refnamediv @@ -31,8 +31,9 @@ user that owns the server process and parameterpassword/parameter = empty password. The parameterclient_flags/parameter - parameter can be a combination of the constants MYSQL_CLIENT_SSL, - MYSQL_CLIENT_COMPRESS, MYSQL_CLIENT_IGNORE_SPACE or MYSQL_CLIENT_INTERACTIVE. + parameter can be a combination of the constants + MYSQL_CLIENT_COMPRESS, MYSQL_CLIENT_IGNORE_SPACE or + MYSQL_CLIENT_INTERACTIVE. /para para The parameterserver/parameter parameter can also include a port -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml
pollita Sun Dec 1 21:09:30 2002 EDT Modified files: /phpdoc/en/reference/mysql/functionsmysql-connect.xml Log: Added usage of mysql_error() in example. Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.3 phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.4 --- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.3 Wed Jul 10 11:34:01 2002 +++ phpdoc/en/reference/mysql/functions/mysql-connect.xml Sun Dec 1 21:09:30 +2002 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.3 $ -- +!-- $Revision: 1.4 $ -- !-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -- refentry id=function.mysql-connect refnamediv @@ -88,7 +88,7 @@ ![CDATA[ ?php $link = mysql_connect(localhost, mysql_user, mysql_password) -or die(Could not connect); +or die(Could not connect: . mysql_error()); print (Connected successfully); mysql_close($link); ? -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml
georg Wed Jul 10 11:34:02 2002 EDT Modified files: /phpdoc/en/reference/mysql/functionsmysql-connect.xml Log: documented new optional parameter client_flags Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.2 phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.3 --- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.2 Wed Apr 17 02:41:05 2002 +++ phpdoc/en/reference/mysql/functions/mysql-connect.xml Wed Jul 10 11:34:01 +2002 -1,5 +1,5 ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.2 $ -- +!-- $Revision: 1.3 $ -- !-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 -- refentry id=function.mysql-connect refnamediv -22,6 +22,9 methodparam choice=opttypebool/typeparameter new_link /parameter/methodparam + methodparam choice=opttypeint/typeparameter +client_flags + /parameter/methodparam /methodsynopsis para Returns a MySQL link identifier on success, or false; on failure. -60,12 +63,18 returned. The parameternew_link/parameter parameter modifies this behavior and makes functionmysql_connect/function always open a new link, even if functionmysql_connect/function was called - before with the same parameters. + before with the same parameters. The parameterclient_flags/parameter + parameter can be a combination of the constants MYSQL_CLIENT_SSL, + MYSQL_CLIENT_COMPRESS, MYSQL_CLIENT_IGNORE_SPACE or MYSQL_CLIENT_INTERACTIVE. /para note para The parameternew_link/parameter parameter became available in PHP 4.2.0 + /para + para + The parameterclient_flags/parameter parameter became available in + PHP 4.3.0 /para /note para -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php