From f453f7036c74f5f8ce5e15d3d5abbaf8dfd599e2 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 9 Jul 2010 09:38:38 +0000 Subject: [PATCH] Add PHP tags to git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@301112 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types/float.xml | 2 +- reference/apd/examples.xml | 8 +++++--- reference/fbsql/functions/fbsql-list-dbs.xml | 2 ++ reference/ibase/book.xml | 2 +- reference/ifx/functions/ifx-errormsg.xml | 2 ++ reference/intl/grapheme/grapheme-strrpos.xml | 4 +--- reference/ldap/functions/ldap-list.xml | 9 +++++---- .../functions/mb-decode-numericentity.xml | 2 +- .../functions/mb-encode-numericentity.xml | 2 +- reference/mbstring/http-inout.xml | 2 +- reference/mongo/mongodb/authenticate.xml | 8 ++++++-- reference/mongo/mongogridfs.xml | 6 +++++- reference/mysqlnd/persist.xml | 20 ++++++++++++------- reference/oci8/functions/oci-bind-by-name.xml | 4 ++++ reference/oci8/functions/oci-error.xml | 6 ++++++ reference/oci8/functions/oci-rollback.xml | 2 ++ reference/sca/examples.xml | 10 ++++++---- reference/sockets/errors.xml | 4 ++-- reference/sqlite/setup.xml | 2 ++ reference/wincache/setup.xml | 4 +++- .../xslt/functions/xslt-set-sax-handler.xml | 2 +- .../functions/xslt-set-scheme-handler.xml | 2 +- 22 files changed, 71 insertions(+), 34 deletions(-) diff --git a/language/types/float.xml b/language/types/float.xml index 89bb2b4a8b..5d0a30c867 100644 --- a/language/types/float.xml +++ b/language/types/float.xml @@ -25,7 +25,7 @@ $c = 7E-10; - + - + +]]> diff --git a/reference/fbsql/functions/fbsql-list-dbs.xml b/reference/fbsql/functions/fbsql-list-dbs.xml index c2452ad470..320a75631c 100644 --- a/reference/fbsql/functions/fbsql-list-dbs.xml +++ b/reference/fbsql/functions/fbsql-list-dbs.xml @@ -42,12 +42,14 @@ <function>fbsql_list_dbs</function> example Database . "\n"; } +?> ]]> &example.outputs.similar; diff --git a/reference/ibase/book.xml b/reference/ibase/book.xml index 619d959e66..331b6875b8 100644 --- a/reference/ibase/book.xml +++ b/reference/ibase/book.xml @@ -39,7 +39,7 @@ behavior similar to the Sybase database, add to your &php.ini; the following directive: - + diff --git a/reference/ifx/functions/ifx-errormsg.xml b/reference/ifx/functions/ifx-errormsg.xml index d350701879..b652aa42b5 100644 --- a/reference/ifx/functions/ifx-errormsg.xml +++ b/reference/ifx/functions/ifx-errormsg.xml @@ -49,7 +49,9 @@ <function>ifx_errormsg</function> example ", ifx_errormsg(-201)); +?> ]]> diff --git a/reference/intl/grapheme/grapheme-strrpos.xml b/reference/intl/grapheme/grapheme-strrpos.xml index 2e49e4deae..4955d55c22 100644 --- a/reference/intl/grapheme/grapheme-strrpos.xml +++ b/reference/intl/grapheme/grapheme-strrpos.xml @@ -68,13 +68,11 @@ <function>grapheme_strrpos</function> example ]]> diff --git a/reference/ldap/functions/ldap-list.xml b/reference/ldap/functions/ldap-list.xml index 25446499b2..b89d1a53a0 100644 --- a/reference/ldap/functions/ldap-list.xml +++ b/reference/ldap/functions/ldap-list.xml @@ -208,19 +208,20 @@ Produce a list of all organizational units of an organization ]]> diff --git a/reference/mbstring/functions/mb-decode-numericentity.xml b/reference/mbstring/functions/mb-decode-numericentity.xml index 35ebe21b88..96a73cdf08 100644 --- a/reference/mbstring/functions/mb-decode-numericentity.xml +++ b/reference/mbstring/functions/mb-decode-numericentity.xml @@ -63,7 +63,7 @@ <parameter>convmap</parameter> example - + <parameter>convmap</parameter> example - + Disable HTTP input conversion in &php.ini; - + command(array("logout" => 1)); Returns database response. If the login was successful, it will return 1) + 1); +?> ]]> If something went wrong, it will return 0, "errmsg" => "auth fails") + 0, "errmsg" => "auth fails"); +?> ]]> ("auth fails" could be another message, depending on database version and what diff --git a/reference/mongo/mongogridfs.xml b/reference/mongo/mongogridfs.xml index a27bdeae0a..6ec5e5fef7 100644 --- a/reference/mongo/mongogridfs.xml +++ b/reference/mongo/mongogridfs.xml @@ -36,16 +36,20 @@ For example, the files document is something like: 123456789, "filename" => "foo.txt", "chunkSize" => 3, "length" => 12) + 123456789, "filename" => "foo.txt", "chunkSize" => 3, "length" => 12); +?> ]]> and the chunks documents look like: 123456789, "n" => 0, "data" => new MongoBinData("abc")); array("files_id" => 123456789, "n" => 1, "data" => new MongoBinData("def")); array("files_id" => 123456789, "n" => 2, "data" => new MongoBinData("ghi")); array("files_id" => 123456789, "n" => 3, "data" => new MongoBinData("jkl")); +?> ]]> Of course, the default chunk size is thousands of bytes, but that makes an unweildy example. diff --git a/reference/mysqlnd/persist.xml b/reference/mysqlnd/persist.xml index 84ee273788..2a43e08af7 100644 --- a/reference/mysqlnd/persist.xml +++ b/reference/mysqlnd/persist.xml @@ -17,15 +17,21 @@ mysqli: -$host="p:localhost"; -$port=3306; -$socket="/tmp/mysql.sock"; -$user="root"; -$password="password"; -$dbname="test"; + + + or die('Could not connect to the database server' . mysqli_connect_error()); +?> +]]> +