[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-get-notify.xml
yannick Sun Jul 3 08:27:10 2005 EDT Modified files: /phpdoc/en/reference/pgsql/functionspg-get-notify.xml Log: fix build http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-get-notify.xml?r1=1.12r2=1.13ty=u Index: phpdoc/en/reference/pgsql/functions/pg-get-notify.xml diff -u phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.12 phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.13 --- phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.12 Sun Jul 3 06:03:51 2005 +++ phpdoc/en/reference/pgsql/functions/pg-get-notify.xml Sun Jul 3 08:27:09 2005 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.12 $ -- +!-- $Revision: 1.13 $ -- refentry id=function.pg-get-notify refnamediv refnamepg_get_notify/refname @@ -58,7 +58,7 @@ reftitle.returnvalues; para An typearray/type containing the literalNOTIFY/literal message name and backend PID. - Otherwise if no /literalNOTIFY/literal is waiting, then false; is returned. + Otherwise if no literalNOTIFY/literal is waiting, then false; is returned. /para /refsect1
[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-get-notify.xml pg-last-error.xml pg-last-notice.xml pg-last-oid.xml
chriskl Mon Jul 4 00:44:22 2005 EDT Modified files: /phpdoc/en/reference/pgsql/functionspg-get-notify.xml pg-last-error.xml pg-last-notice.xml pg-last-oid.xml Log: Convert several more pgsql doc pages to the new format. http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-get-notify.xml?r1=1.13r2=1.14ty=u Index: phpdoc/en/reference/pgsql/functions/pg-get-notify.xml diff -u phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.13 phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.14 --- phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.13 Sun Jul 3 08:27:09 2005 +++ phpdoc/en/reference/pgsql/functions/pg-get-notify.xml Mon Jul 4 00:44:21 2005 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.13 $ -- +!-- $Revision: 1.14 $ -- refentry id=function.pg-get-notify refnamediv refnamepg_get_notify/refname @@ -21,7 +21,7 @@ /para /refsect1 -refsect1 role=parameters + refsect1 role=parameters reftitle.parameters; para variablelist http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-last-error.xml?r1=1.7r2=1.8ty=u Index: phpdoc/en/reference/pgsql/functions/pg-last-error.xml diff -u phpdoc/en/reference/pgsql/functions/pg-last-error.xml:1.7 phpdoc/en/reference/pgsql/functions/pg-last-error.xml:1.8 --- phpdoc/en/reference/pgsql/functions/pg-last-error.xml:1.7 Thu Apr 21 05:29:05 2005 +++ phpdoc/en/reference/pgsql/functions/pg-last-error.xml Mon Jul 4 00:44:21 2005 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.7 $ -- +!-- $Revision: 1.8 $ -- !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -- refentry id=function.pg-last-error refnamediv @@ -15,15 +15,15 @@ /methodsynopsis para functionpg_last_error/function returns the last error message - for given parameterconnection/parameter. + for a given parameterconnection/parameter. /para para - Error messages may be overwritten by internal PostgreSQL(libpq) - function calls. It may not return appropriate error message, if - multiple errors are occurred inside a PostgreSQL module function. + Error messages may be overwritten by internal PostgreSQL (libpq) + function calls. It may not return an appropriate error message if + multiple errors occur inside a PostgreSQL module function. /para para - Use functionpg_result_error/function, + Use functionpg_result_error/function, functionpg_result_error_field/function, functionpg_result_status/function and functionpg_connection_status/function for better error handling. /para @@ -34,11 +34,62 @@ /note /refsect1 + refsect1 role=parameters + reftitle.parameters; + para + variablelist +varlistentry + termparameterconnection/parameter/term + listitem + para + PostgreSQL database connection resource. When + parameterconnection/parameter is not present, the default connection + is used. The default connection is the last connection made by + functionpg_connect/function or functionpg_pconnect/function. + /para + /listitem +/varlistentry + /variablelist + /para + /refsect1 + + refsect1 role=returnvalues + reftitle.returnvalues; + para + A typestring/type containing the last error message on the + given parameterconnection/parameter, or false; on error. + /para + /refsect1 + + refsect1 role=examples + reftitle.examples; + para + example +titlefunctionpg_last_error/function example/title +programlisting role=php +![CDATA[ +?php +$pgsql_conn = pg_connect(dbname=mark host=localhost); + +if ($pgsql_conn) { + print Successfully connected to: . pg_host($pgsql_conn) . br/\n; +} else { + print pg_last_error($pgsql_conn); + exit; +} +? +]] +/programlisting + /example + /para + /refsect1 + refsect1 role=seealso reftitle.seealso; para simplelist memberfunctionpg_result_error/function/member +memberfunctionpg_result_error_field/function/member /simplelist /para /refsect1 http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-last-notice.xml?r1=1.5r2=1.6ty=u Index: phpdoc/en/reference/pgsql/functions/pg-last-notice.xml diff -u phpdoc/en/reference/pgsql/functions/pg-last-notice.xml:1.5 phpdoc/en/reference/pgsql/functions/pg-last-notice.xml:1.6 --- phpdoc/en/reference/pgsql/functions/pg-last-notice.xml:1.5 Fri Mar 11 11:03:25 2005 +++ phpdoc/en/reference/pgsql/functions/pg-last-notice.xml Mon Jul 4 00:44:21 2005 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.5 $ -- +!-- $Revision: 1.6 $ -- !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 -- refentry id=function.pg-last-notice refnamediv @@ -17,12 +17,14 @@ /methodsynopsis para
[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-get-notify.xml
jsgoupilSun May 15 21:17:55 2005 EDT Modified files: /phpdoc/en/reference/pgsql/functionspg-get-notify.xml Log: correct refpurpose typo http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-get-notify.xml?r1=1.10r2=1.11ty=u Index: phpdoc/en/reference/pgsql/functions/pg-get-notify.xml diff -u phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.10 phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.11 --- phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.10 Sat May 14 17:11:17 2005 +++ phpdoc/en/reference/pgsql/functions/pg-get-notify.xml Sun May 15 21:17:54 2005 @@ -1,9 +1,9 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.10 $ -- +!-- $Revision: 1.11 $ -- refentry id=function.pg-get-notify refnamediv refnamepg_get_notify/refname - refpurposeGets SQL NOTFY message/refpurpose + refpurposeGets SQL NOTIFY message/refpurpose /refnamediv refsect1 role=description
[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-get-notify.xml pg-get-pid.xml pg-insert.xml
conni Sat May 14 17:11:17 2005 EDT Modified files: /phpdoc/en/reference/pgsql/functionspg-insert.xml pg-get-pid.xml pg-get-notify.xml Log: correct refpurposes ... http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-insert.xml?r1=1.13r2=1.14ty=u Index: phpdoc/en/reference/pgsql/functions/pg-insert.xml diff -u phpdoc/en/reference/pgsql/functions/pg-insert.xml:1.13 phpdoc/en/reference/pgsql/functions/pg-insert.xml:1.14 --- phpdoc/en/reference/pgsql/functions/pg-insert.xml:1.13 Fri Mar 11 11:03:25 2005 +++ phpdoc/en/reference/pgsql/functions/pg-insert.xml Sat May 14 17:11:17 2005 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.13 $ -- +!-- $Revision: 1.14 $ -- !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.80 -- refentry id='function.pg-insert' refnamediv @@ -22,9 +22,8 @@ functionpg_insert/function inserts the values of parameterassoc_array/parameter into the table specified by parametertable_name/parameter. parametertable_name/parameter must at least have as many columns as - parameterassoc_array/parameter has elements. The fieldnames as - well as the fieldvalues in parametertable_name/parameter - must match the indices and values of parameterassoc_array/parameter. + parameterassoc_array/parameter has elements. The fieldnames in + parametertable_name/parameter must match the indices of parameterassoc_array/parameter. return.success; If parameteroptions/parameter is specified, functionpg_insert/function is applied to parameterassoc_array/parameter with specified option. http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-get-pid.xml?r1=1.4r2=1.5ty=u Index: phpdoc/en/reference/pgsql/functions/pg-get-pid.xml diff -u phpdoc/en/reference/pgsql/functions/pg-get-pid.xml:1.4 phpdoc/en/reference/pgsql/functions/pg-get-pid.xml:1.5 --- phpdoc/en/reference/pgsql/functions/pg-get-pid.xml:1.4 Fri Mar 11 11:03:25 2005 +++ phpdoc/en/reference/pgsql/functions/pg-get-pid.xml Sat May 14 17:11:17 2005 @@ -1,9 +1,9 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.4 $ -- +!-- $Revision: 1.5 $ -- refentry id=function.pg-get-pid refnamediv refnamepg_get_pid/refname - refpurposePing database connection/refpurpose + refpurposeGets backend's process ID/refpurpose /refnamediv refsect1 role=description http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-get-notify.xml?r1=1.9r2=1.10ty=u Index: phpdoc/en/reference/pgsql/functions/pg-get-notify.xml diff -u phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.9 phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.10 --- phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.9 Fri Mar 11 11:03:25 2005 +++ phpdoc/en/reference/pgsql/functions/pg-get-notify.xml Sat May 14 17:11:17 2005 @@ -1,9 +1,9 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.9 $ -- +!-- $Revision: 1.10 $ -- refentry id=function.pg-get-notify refnamediv refnamepg_get_notify/refname - refpurposePing database connection/refpurpose + refpurposeGets SQL NOTFY message/refpurpose /refnamediv refsect1 role=description
[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-get-notify.xml
vincent Fri Oct 31 07:02:57 2003 EDT Modified files: /phpdoc/en/reference/pgsql/functionspg-get-notify.xml Log: Only fixing example Index: phpdoc/en/reference/pgsql/functions/pg-get-notify.xml diff -u phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.4 phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.5 --- phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.4 Tue Sep 30 04:33:41 2003 +++ phpdoc/en/reference/pgsql/functions/pg-get-notify.xml Fri Oct 31 07:02:57 2003 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.4 $ -- +!-- $Revision: 1.5 $ -- refentry id=function.pg-get-notify refnamediv refnamepg_get_notify/refname @@ -36,7 +36,7 @@ } // Listen 'author_updated' message from other processes -pq_query($conn, 'LISTEN author_updated;'); +pg_query($conn, 'LISTEN author_updated;'); $notify = pg_get_notify($conn); if (!$notify) print(No messages\n);
[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-get-notify.xml
dallas Fri Feb 28 01:33:15 2003 EDT Modified files: /phpdoc/en/reference/pgsql/functionspg-get-notify.xml Log: A typo fixed. Index: phpdoc/en/reference/pgsql/functions/pg-get-notify.xml diff -u phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.1 phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.2 --- phpdoc/en/reference/pgsql/functions/pg-get-notify.xml:1.1 Fri Oct 18 06:25:55 2002 +++ phpdoc/en/reference/pgsql/functions/pg-get-notify.xml Fri Feb 28 01:33:15 2003 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.1 $ -- +!-- $Revision: 1.2 $ -- refentry id=function.pg-get-notify refnamediv refnamepg_get_notify/refname @@ -14,7 +14,7 @@ /methodsynopsis para functionpg_get_notify/function gets notify message sent by - literalNOTIFY/literal SQL command. To recieve nofigy + literalNOTIFY/literal SQL command. To recieve notify messages, literalLISTEN/literal SQL command must be issued. If there is notify message on the connection, array contains message name and backend PID is returned. If there is no -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-get-notify.xml pg-get-pid.xml
yohgaki Fri Oct 18 06:25:55 2002 EDT Added files: /phpdoc/en/reference/pgsql/functionspg-get-notify.xml pg-get-pid.xml Log: Added new functions Index: phpdoc/en/reference/pgsql/functions/pg-get-notify.xml +++ phpdoc/en/reference/pgsql/functions/pg-get-notify.xml ?xml version=1.0 encoding=iso-8859-1? !-- $Revision: 1.1 $ -- refentry id=function.pg-get-notify refnamediv refnamepg_get_notify/refname refpurposePing database connection/refpurpose /refnamediv refsect1 titleDescription/title methodsynopsis typearray/typemethodnamepg_get_notify/methodname methodparamtyperesource/typeparameterconnection/parameter/methodparam methodparam choice=opttypeint/typeparameterresult_type/parameter/methodparam /methodsynopsis para functionpg_get_notify/function gets notify message sent by literalNOTIFY/literal SQL command. To recieve nofigy messages, literalLISTEN/literal SQL command must be issued. If there is notify message on the connection, array contains message name and backend PID is returned. If there is no message, false; is returned. /para para See also functionpg_get_pid/function /para para example titlePostgreSQL NOTIFY message/title programlisting role=php ![CDATA[ ?php $conn = pg_pconnect (dbname=publisher); if (!$conn) { echo An error occured.\n; exit; } // Listen 'author_updated' message from other processes pq_query($conn, 'LISTEN author_updated;'); $notify = pg_get_notify($conn); if (!$notify) print(No messages\n); else print_r($notify); ? ]] /programlisting /example /para /refsect1 /refentry !-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:../../../../manual.ced sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -- Index: phpdoc/en/reference/pgsql/functions/pg-get-pid.xml +++ phpdoc/en/reference/pgsql/functions/pg-get-pid.xml ?xml version=1.0 encoding=iso-8859-1? !-- $Revision: 1.1 $ -- refentry id=function.pg-get-pid refnamediv refnamepg_get_pid/refname refpurposePing database connection/refpurpose /refnamediv refsect1 titleDescription/title methodsynopsis typeint/typemethodnamepg_get_pid/methodname methodparamtyperesource/typeparameterconnection/parameter/methodparam /methodsynopsis para functionpg_get_pid/function gets backend (database server process) PID. PID is useful to check if literalNOTIFY/literal message is sent from other process or not. /para para See also functionpg_get_notify/function /para para example titlePostgreSQL backend PID/title programlisting role=php ![CDATA[ ?php $conn = pg_pconnect (dbname=publisher); if (!$conn) { echo An error occured.\n; exit; } // Backend process PID. Use PID with pg_get_notify() $pid = pg_get_pid($conn); ? ]] /programlisting /example /para /refsect1 /refentry !-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:../../../../manual.ced sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -- -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php