From befe9b237508e7e320c503d63368cb6d7b64e9bc Mon Sep 17 00:00:00 2001 From: Esen Sagynov Date: Thu, 5 Aug 2010 15:05:42 +0000 Subject: [PATCH] solved: - tab issue - empty configure.xml issue - example.xml short opening tags and PEAR CS git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@301890 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/cubrid/book.developer.xml | 76 ------ reference/cubrid/book.xml | 4 +- reference/cubrid/configure.xml | 54 +++- reference/cubrid/constants.xml | 60 ++--- reference/cubrid/examples.xml | 230 ++++++++++-------- .../cubrid/functions/cubrid-affected-rows.xml | 8 +- reference/cubrid/functions/cubrid-bind.xml | 8 +- .../cubrid/functions/cubrid-close-prepare.xml | 8 +- .../cubrid/functions/cubrid-close-request.xml | 8 +- reference/cubrid/functions/cubrid-col-get.xml | 8 +- .../cubrid/functions/cubrid-col-size.xml | 14 +- .../cubrid/functions/cubrid-column-names.xml | 8 +- .../cubrid/functions/cubrid-column-types.xml | 8 +- reference/cubrid/functions/cubrid-commit.xml | 8 +- reference/cubrid/functions/cubrid-connect.xml | 10 +- .../cubrid/functions/cubrid-current-oid.xml | 8 +- .../cubrid/functions/cubrid-disconnect.xml | 8 +- reference/cubrid/functions/cubrid-drop.xml | 8 +- .../functions/cubrid-error-code-facility.xml | 6 +- .../cubrid/functions/cubrid-error-code.xml | 4 +- .../cubrid/functions/cubrid-error-msg.xml | 4 +- reference/cubrid/functions/cubrid-execute.xml | 58 ++--- reference/cubrid/functions/cubrid-fetch.xml | 16 +- .../functions/cubrid-get-class-name.xml | 8 +- reference/cubrid/functions/cubrid-get.xml | 4 +- .../cubrid/functions/cubrid-is-instance.xml | 10 +- .../cubrid/functions/cubrid-load-from-glo.xml | 8 +- .../cubrid/functions/cubrid-lock-read.xml | 8 +- .../cubrid/functions/cubrid-lock-write.xml | 8 +- .../cubrid/functions/cubrid-move-cursor.xml | 12 +- reference/cubrid/functions/cubrid-new-glo.xml | 12 +- .../cubrid/functions/cubrid-num-cols.xml | 10 +- .../cubrid/functions/cubrid-num-rows.xml | 14 +- reference/cubrid/functions/cubrid-prepare.xml | 10 +- reference/cubrid/functions/cubrid-put.xml | 18 +- .../cubrid/functions/cubrid-rollback.xml | 14 +- .../cubrid/functions/cubrid-save-to-glo.xml | 12 +- reference/cubrid/functions/cubrid-schema.xml | 8 +- .../cubrid/functions/cubrid-send-glo.xml | 12 +- .../cubrid/functions/cubrid-seq-drop.xml | 12 +- .../cubrid/functions/cubrid-seq-insert.xml | 12 +- reference/cubrid/functions/cubrid-seq-put.xml | 12 +- reference/cubrid/functions/cubrid-set-add.xml | 10 +- .../cubrid/functions/cubrid-set-drop.xml | 10 +- reference/cubrid/functions/cubrid-version.xml | 6 +- reference/cubrid/setup.xml | 63 +---- 46 files changed, 429 insertions(+), 488 deletions(-) delete mode 100644 reference/cubrid/book.developer.xml diff --git a/reference/cubrid/book.developer.xml b/reference/cubrid/book.developer.xml deleted file mode 100644 index ed1dfad831..0000000000 --- a/reference/cubrid/book.developer.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - -%xhtml-lat1; -%xhtml-symbol; -%xhtml-special; -%isopub; - - - - - - -%language-defs.default; -%extensions.default; -%language-snippets.default; - - - - - - - - - -%global.entities; -%file.entities; -%frontpage.entities; -]> - - - Cubrid - Cubrid - - - &reftitle.intro; - - - - - - &reference.cubrid.setup; - &reference.cubrid.constants; - &reference.cubrid.examples; - &reference.cubrid.reference; - - - - - diff --git a/reference/cubrid/book.xml b/reference/cubrid/book.xml index 2b5b826ae0..99a9a54e5e 100644 --- a/reference/cubrid/book.xml +++ b/reference/cubrid/book.xml @@ -8,10 +8,10 @@ &reftitle.intro; - These functions allow you to access CUBRID database servers. More information about CUBRID can be found at CUBRID. + These functions allow you to access CUBRID database servers. More information about CUBRID can be found at CUBRID. - Documentation for CUBRID can be found at CUBRID Documentation. + Documentation for CUBRID can be found at CUBRID Documentation. diff --git a/reference/cubrid/configure.xml b/reference/cubrid/configure.xml index ea87f3d6ec..63946f136c 100644 --- a/reference/cubrid/configure.xml +++ b/reference/cubrid/configure.xml @@ -2,12 +2,54 @@
- &reftitle.install; - - - - - + &reftitle.install; + + From the CUBRID homepage (CUBRID), download the PHP module. + +
+ Installing PHP for Windows + + Create a directory named CUBRID in the directory where PHP is installed, and then copy the cubrid_err.msg file and the .dll file of the cubrid_php version you just downloaded. If you download CUBRID PHP version 5.1.4, add required settings as shown in the example below by editing the php.ini file. + + + + + + Once the configuration is complete, restart the web server. If you can see the CUBRID information as shown below when you check the PHP configuration using the phpinfo() function of PHP, it means that the installation was successful. + +
+
+ Installing PHP for Linux + + Unlike Windows, Linux provides its source code. Download the source code from the CUBRID homepage (CUBRID), and install it by following the INSTALL file of the compressed file. Also in the Linux version, edit and save the php.ini file, and then restart the web server. + + + + + + Check the configuration using phpinfo() function. + + + + + + As with the Windows version of PHP, if you can see the CUBRID information on the web browser, it means that the installation was successful. + +
diff --git a/reference/cubrid/constants.xml b/reference/cubrid/constants.xml index 3598da3f15..99d598113f 100644 --- a/reference/cubrid/constants.xml +++ b/reference/cubrid/constants.xml @@ -13,7 +13,7 @@ - Is used to determine whether to get OID after query execution. + Is used to determine whether to get OID after query execution. @@ -24,7 +24,7 @@ - Is used to execute the query in asynchronous mode. + Is used to execute the query in asynchronous mode. @@ -35,7 +35,7 @@ - Is used to get the query result as a numeric array (0-default). + Is used to get the query result as a numeric array (0-default). @@ -46,7 +46,7 @@ - Is used to get the query result as an associative array. + Is used to get the query result as an associative array. @@ -57,7 +57,7 @@ - Is used to get the query result as both numeric and associative arrays (default value). + Is used to get the query result as both numeric and associative arrays (default value). @@ -68,7 +68,7 @@ - Is used to get the query result an object that has the attribute whose name is the same as the column name. + Is used to get the query result an object that has the attribute whose name is the same as the column name. @@ -79,7 +79,7 @@ - Is used to move the current cursor to the first position in the result. + Is used to move the current cursor to the first position in the result. @@ -90,7 +90,7 @@ - Is used to move the current cursor as a default value if the origin is not specified. + Is used to move the current cursor as a default value if the origin is not specified. @@ -101,7 +101,7 @@ - Is used to move the current cursor to the last position in the result. + Is used to move the current cursor to the last position in the result. @@ -112,7 +112,7 @@ - Is the returned value of cubrid_move_cursor function in case of success. + Is the returned value of cubrid_move_cursor function in case of success. @@ -123,7 +123,7 @@ - Is the returned value of cubrid_move_cursor function in case of failure. + Is the returned value of cubrid_move_cursor function in case of failure. @@ -134,7 +134,7 @@ - Is the returned value of cubrid_move_cursor function in case of failure. + Is the returned value of cubrid_move_cursor function in case of failure. @@ -145,7 +145,7 @@ - Is a schema type used for cubrid_schema function. + Is a schema type used for cubrid_schema function. @@ -156,7 +156,7 @@ - Is a schema type used for cubrid_schema function. + Is a schema type used for cubrid_schema function. @@ -167,7 +167,7 @@ - Is a schema type used for cubrid_schema function. + Is a schema type used for cubrid_schema function. @@ -178,7 +178,7 @@ - Is a schema type used for cubrid_schema function. + Is a schema type used for cubrid_schema function. @@ -189,7 +189,7 @@ - Is a schema type used for cubrid_schema function. + Is a schema type used for cubrid_schema function. @@ -200,7 +200,7 @@ - Is a schema type used for cubrid_schema function. + Is a schema type used for cubrid_schema function. @@ -211,7 +211,7 @@ - Is a schema type used for cubrid_schema function. + Is a schema type used for cubrid_schema function. @@ -222,7 +222,7 @@ - Is a schema type used for cubrid_schema function. + Is a schema type used for cubrid_schema function. @@ -233,7 +233,7 @@ - Is a schema type used for cubrid_schema function. + Is a schema type used for cubrid_schema function. @@ -244,7 +244,7 @@ - Is a schema type used for cubrid_schema function. + Is a schema type used for cubrid_schema function. @@ -255,7 +255,7 @@ - Is a schema type used for cubrid_schema function. + Is a schema type used for cubrid_schema function. @@ -266,7 +266,7 @@ - Is a schema type used for cubrid_schema function. + Is a schema type used for cubrid_schema function. @@ -277,7 +277,7 @@ - Is a schema type used for cubrid_schema function. + Is a schema type used for cubrid_schema function. @@ -288,7 +288,7 @@ - Is a schema type used for cubrid_schema function. + Is a schema type used for cubrid_schema function. @@ -299,7 +299,7 @@ - Is the facility code of the occurred error code when using cubrid_error_code_facility function. + Is the facility code of the occurred error code when using cubrid_error_code_facility function. @@ -310,7 +310,7 @@ - Is the facility code of the occurred error code when using cubrid_error_code_facility function. + Is the facility code of the occurred error code when using cubrid_error_code_facility function. @@ -321,7 +321,7 @@ - Is the facility code of the occurred error code when using cubrid_error_code_facility function. + Is the facility code of the occurred error code when using cubrid_error_code_facility function. @@ -332,7 +332,7 @@ - Is the facility code of the occurred error code when using cubrid_error_code_facility function. + Is the facility code of the occurred error code when using cubrid_error_code_facility function. diff --git a/reference/cubrid/examples.xml b/reference/cubrid/examples.xml index a0ebe87559..c147223c55 100644 --- a/reference/cubrid/examples.xml +++ b/reference/cubrid/examples.xml @@ -5,126 +5,150 @@ &reftitle.examples; The following is a simple example that establishes a connection between PHP and CUBRID. This section will cover the most basic and notable features. The following code required to connect to CUBRID database, which means CUBRID Server and CUBRID Broker have to be running. The example below uses the demodb database as an examples. By default it is created during the installation. Make sure it has been created. - Example of Data Retrieval - - - - - -
- - + + + + +
+
+ - + "); + if ($result) { + /** + * Get the column names from the result set created by the SQL query. + */ + $columns = cubrid_column_names($result); + /** + * Get the number of columns in the result set created by the SQL query. + */ + $num_fields = cubrid_num_cols($result); + /** + * List the column names of the result set on the screen. + */ + echo(""); - while (list($key, $colname) = each($columns)) { - echo(""); - } + while (list($key, $colname) = each($columns)) { + echo(""); + } - echo(""); + echo(""); - // Get the results from the result set. - while ($row = cubrid_fetch($result)) { - echo(""); + /** + * Get the results from the result set. + */ + while ($row = cubrid_fetch($result)) { + echo(""); - for ($i = 0; $i < $num_fields; $i++) { - echo(""); - } + for ($i = 0; $i < $num_fields; $i++) { + echo(""); + } - echo(""); - } - } - // The PHP module in the CUBRID runs in a 3-tier architecture. Even when - // calling SELECT for transaction processing, it is processed as a part - // of the transaction. Therefore, the transaction needs to be rolled back - // by calling commit or rollback even though SELECT was called for smooth - // performance. - cubrid_commit($cubrid_con); - cubrid_disconnect($cubrid_con); - ?> - - - ]]> + echo(""); + } + } + /** + * The PHP module in the CUBRID runs in a 3-tier architecture. Even when + * calling SELECT for transaction processing, it is processed as a part + * of the transaction. Therefore, the transaction needs to be rolled back + * by calling commit or rollback even though SELECT was called for smooth + * performance. + */ + cubrid_commit($cubrid_con); + cubrid_disconnect($cubrid_con); + ?> + + + ]]> Example of Data Insertion - - - - - -
-
$colname$colname
"); - echo($row[$i]); - echo(""); + echo($row[$i]); + echo("
- + + + + +
+
+ - - - - ]]> + if (!$cubrid_con) { + echo "Database Connection Error"; + exit; + } + ?> + + + + ]]> diff --git a/reference/cubrid/functions/cubrid-affected-rows.xml b/reference/cubrid/functions/cubrid-affected-rows.xml index af21daec51..3ca0d8ede7 100644 --- a/reference/cubrid/functions/cubrid-affected-rows.xml +++ b/reference/cubrid/functions/cubrid-affected-rows.xml @@ -14,7 +14,7 @@ intreq_handle - The cubrid_affected_rows function is used to get the number of rows affected by the SQL sentence (INSERT, DELETE, UPDATE). + The cubrid_affected_rows function is used to get the number of rows affected by the SQL sentence (INSERT, DELETE, UPDATE). @@ -22,7 +22,7 @@ &reftitle.parameters; - + req_handle Request handle. @@ -33,10 +33,10 @@ &reftitle.returnvalues; - Number of rows affected by the SQL sentence, when process is successful. + Number of rows affected by the SQL sentence, when process is successful. - -1, when process is unsuccessful. + -1, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-bind.xml b/reference/cubrid/functions/cubrid-bind.xml index 4a69301bd2..addd6b9aec 100644 --- a/reference/cubrid/functions/cubrid-bind.xml +++ b/reference/cubrid/functions/cubrid-bind.xml @@ -17,7 +17,7 @@ stringbind_value_type - The cubrid_bind function is used to bind values in a cubrid_prepare variable, a various types in PHP and corresponding types in SQL. + The cubrid_bind function is used to bind values in a cubrid_prepare variable, a various types in PHP and corresponding types in SQL. @@ -25,7 +25,7 @@ &reftitle.parameters; - + req_handle Request handle as a result of cubrid_prepare. @@ -50,10 +50,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-close-prepare.xml b/reference/cubrid/functions/cubrid-close-prepare.xml index 41d30e3254..f50a4cadd3 100644 --- a/reference/cubrid/functions/cubrid-close-prepare.xml +++ b/reference/cubrid/functions/cubrid-close-prepare.xml @@ -14,7 +14,7 @@ intreq_handle - The cubrid_close_prepare function closes the request handle given by the req_handle argument, and releases the memory region related to the handle. + The cubrid_close_prepare function closes the request handle given by the req_handle argument, and releases the memory region related to the handle. @@ -22,7 +22,7 @@ &reftitle.parameters; - + req_handle Request handle. @@ -33,10 +33,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-close-request.xml b/reference/cubrid/functions/cubrid-close-request.xml index c4b32dace9..913dc59674 100644 --- a/reference/cubrid/functions/cubrid-close-request.xml +++ b/reference/cubrid/functions/cubrid-close-request.xml @@ -14,7 +14,7 @@ intreq_handle - The cubrid_close_request function closes the request handle given by the req_handle argument, and releases the memory region related to the handle. + The cubrid_close_request function closes the request handle given by the req_handle argument, and releases the memory region related to the handle. @@ -22,7 +22,7 @@ &reftitle.parameters; - + req_handle Request handle. @@ -33,10 +33,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-col-get.xml b/reference/cubrid/functions/cubrid-col-get.xml index f1cfeb5e6e..fbe041889b 100644 --- a/reference/cubrid/functions/cubrid-col-get.xml +++ b/reference/cubrid/functions/cubrid-col-get.xml @@ -16,7 +16,7 @@ stringattr_name - The cubrid_col_get function is used to get contents of the elements of the collection type (set, multiset, sequence) attribute you requested as an array. + The cubrid_col_get function is used to get contents of the elements of the collection type (set, multiset, sequence) attribute you requested as an array. @@ -24,7 +24,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -44,10 +44,10 @@ &reftitle.returnvalues; - Array (0-based numerical array) containing the elements you requested, when process is successful; + Array (0-based numerical array) containing the elements you requested, when process is successful; - &false; (to distinguish the error from the situation of attribute having empty collection or NULL, in case of error, a warning message is shown; in such case you can check the error by using cubrid_error_code), when process is unsuccessful. + &false; (to distinguish the error from the situation of attribute having empty collection or NULL, in case of error, a warning message is shown; in such case you can check the error by using cubrid_error_code), when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-col-size.xml b/reference/cubrid/functions/cubrid-col-size.xml index a6a6b16a31..b05456994f 100644 --- a/reference/cubrid/functions/cubrid-col-size.xml +++ b/reference/cubrid/functions/cubrid-col-size.xml @@ -11,12 +11,12 @@ &reftitle.description; intcubrid_col_size - intconn_handle - stringoid - stringattr_name + intconn_handle + stringoid + stringattr_name - The cubrid_col_size function is used to get the number of elements in a collection type (set, multiset, sequence) attribute. + The cubrid_col_size function is used to get the number of elements in a collection type (set, multiset, sequence) attribute. @@ -24,7 +24,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -43,10 +43,10 @@ &reftitle.returnvalues; - Number of elements, when process is successful. + Number of elements, when process is successful. - -1, when process is unsuccessful. + -1, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-column-names.xml b/reference/cubrid/functions/cubrid-column-names.xml index 130c1b4d8c..f275304c8e 100644 --- a/reference/cubrid/functions/cubrid-column-names.xml +++ b/reference/cubrid/functions/cubrid-column-names.xml @@ -14,7 +14,7 @@ intreq_handle - The cubrid_column_names function is used to get the column names of the query result by using req_handle. + The cubrid_column_names function is used to get the column names of the query result by using req_handle. @@ -22,7 +22,7 @@ &reftitle.parameters; - + req_handle Request handle. @@ -33,10 +33,10 @@ &reftitle.returnvalues; - array containing column names, when process is successful. + array containing column names, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-column-types.xml b/reference/cubrid/functions/cubrid-column-types.xml index 8be11a1085..c56a273ab7 100644 --- a/reference/cubrid/functions/cubrid-column-types.xml +++ b/reference/cubrid/functions/cubrid-column-types.xml @@ -14,7 +14,7 @@ intreq_handle - The cubrid_column_types function gets column types of query results by using req_handle. + The cubrid_column_types function gets column types of query results by using req_handle. @@ -22,7 +22,7 @@ &reftitle.parameters; - + req_handle Request handle. @@ -33,10 +33,10 @@ &reftitle.returnvalues; - Array containing column types, when process is successful. + Array containing column types, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-commit.xml b/reference/cubrid/functions/cubrid-commit.xml index fd18e16466..34cd4ff646 100644 --- a/reference/cubrid/functions/cubrid-commit.xml +++ b/reference/cubrid/functions/cubrid-commit.xml @@ -13,7 +13,7 @@ intcubrid_commit intconn_handle - The cubrid_commit function is used to execute commit on the transaction pointed by conn_handle, currently on progress. Connection to the server is closed after the cubrid_commit function is called; the connection handle is still valid, however. + The cubrid_commit function is used to execute commit on the transaction pointed by conn_handle, currently on progress. Connection to the server is closed after the cubrid_commit function is called; the connection handle is still valid, however. @@ -21,7 +21,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -32,10 +32,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-connect.xml b/reference/cubrid/functions/cubrid-connect.xml index e61c5f47e4..dc205351c1 100644 --- a/reference/cubrid/functions/cubrid-connect.xml +++ b/reference/cubrid/functions/cubrid-connect.xml @@ -18,10 +18,10 @@ stringpasswd - The cubrid_connect function is used to establish the environment for connecting to your server by using your server address, port number, database name, user name, and password. If the user name and password is not given, then the "PUBLIC" connection will be made by default. + The cubrid_connect function is used to establish the environment for connecting to your server by using your server address, port number, database name, user name, and password. If the user name and password is not given, then the "PUBLIC" connection will be made by default. - Calling the cubrid_connect function does not necessarily make the connection to your server. The actual connection will be made when an operation is requested by using the connection handle. + Calling the cubrid_connect function does not necessarily make the connection to your server. The actual connection will be made when an operation is requested by using the connection handle. @@ -29,7 +29,7 @@ &reftitle.parameters; - + host Host name of CAS server. @@ -56,10 +56,10 @@ &reftitle.returnvalues; - Connection handle, when process is successful. + Connection handle, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-current-oid.xml b/reference/cubrid/functions/cubrid-current-oid.xml index f0871245c7..26a7dc9a68 100644 --- a/reference/cubrid/functions/cubrid-current-oid.xml +++ b/reference/cubrid/functions/cubrid-current-oid.xml @@ -14,7 +14,7 @@ intreq_handle - The cubrid_current_oid function is used to get the oid of the current cursor location from the query result. To use cubrid_current_oid, the query executed must be a updatable query, and the CUBRID_ INCLUDE_OID option must be included during the query execution. + The cubrid_current_oid function is used to get the oid of the current cursor location from the query result. To use cubrid_current_oid, the query executed must be a updatable query, and the CUBRID_ INCLUDE_OID option must be included during the query execution. @@ -22,7 +22,7 @@ &reftitle.parameters; - + req_handle Request handle. @@ -33,10 +33,10 @@ &reftitle.returnvalues; - Oid of current cursor location, when process is successful + Oid of current cursor location, when process is successful - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-disconnect.xml b/reference/cubrid/functions/cubrid-disconnect.xml index 350f7e934e..d1cbf10a6b 100644 --- a/reference/cubrid/functions/cubrid-disconnect.xml +++ b/reference/cubrid/functions/cubrid-disconnect.xml @@ -14,7 +14,7 @@ intconn_handle - The cubrid_disconnect function ends the transaction currently on process, closes the connection handle and disconnects from server. If there exists any request handle not closed yet at this point, it will be closed. + The cubrid_disconnect function ends the transaction currently on process, closes the connection handle and disconnects from server. If there exists any request handle not closed yet at this point, it will be closed. @@ -22,7 +22,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -33,10 +33,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-drop.xml b/reference/cubrid/functions/cubrid-drop.xml index 6b9eaca129..db5e514115 100644 --- a/reference/cubrid/functions/cubrid-drop.xml +++ b/reference/cubrid/functions/cubrid-drop.xml @@ -15,7 +15,7 @@ stringoid - The cubrid_drop function is used to delete an instance from database by using oid. + The cubrid_drop function is used to delete an instance from database by using oid. @@ -23,7 +23,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -38,10 +38,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-error-code-facility.xml b/reference/cubrid/functions/cubrid-error-code-facility.xml index 47c19506a9..94073692a4 100644 --- a/reference/cubrid/functions/cubrid-error-code-facility.xml +++ b/reference/cubrid/functions/cubrid-error-code-facility.xml @@ -14,7 +14,7 @@ - The cubrid_error_code_facility function is used to get the facility code (level in which the error occurred) from the error code of the error that occurred during the API execution. Usually, you can get the error code when API returns false as its return value. + The cubrid_error_code_facility function is used to get the facility code (level in which the error occurred) from the error code of the error that occurred during the API execution. Usually, you can get the error code when API returns false as its return value. @@ -26,8 +26,8 @@ &reftitle.returnvalues; - Facility code of the error code that occurred: CUBRID_FACILITY_DBMS, CUBRID_FACILITY_CAS, CUBRID_FACILITY_CCI, CUBRID_FACILITY_CLIENT - + Facility code of the error code that occurred: CUBRID_FACILITY_DBMS, CUBRID_FACILITY_CAS, CUBRID_FACILITY_CCI, CUBRID_FACILITY_CLIENT + diff --git a/reference/cubrid/functions/cubrid-error-code.xml b/reference/cubrid/functions/cubrid-error-code.xml index a7fbe92908..76203ce782 100644 --- a/reference/cubrid/functions/cubrid-error-code.xml +++ b/reference/cubrid/functions/cubrid-error-code.xml @@ -14,7 +14,7 @@ - The cubrid_error_code function is used to get the error code of the error that occurred during the API execution. Usually, it gets the error code when API returns false as its return value. + The cubrid_error_code function is used to get the error code of the error that occurred during the API execution. Usually, it gets the error code when API returns false as its return value. @@ -26,7 +26,7 @@ &reftitle.returnvalues; - Error code of the error that occurred. + Error code of the error that occurred. diff --git a/reference/cubrid/functions/cubrid-error-msg.xml b/reference/cubrid/functions/cubrid-error-msg.xml index f22429bf53..c3afebd04a 100644 --- a/reference/cubrid/functions/cubrid-error-msg.xml +++ b/reference/cubrid/functions/cubrid-error-msg.xml @@ -14,7 +14,7 @@ - The cubrid_error_msg function is used to get the error message that occurred during the use of CUBRID API. Usually, it gets error message when API returns false as its return value. + The cubrid_error_msg function is used to get the error message that occurred during the use of CUBRID API. Usually, it gets error message when API returns false as its return value. @@ -26,7 +26,7 @@ &reftitle.returnvalues; - Error message that occurred. + Error message that occurred. diff --git a/reference/cubrid/functions/cubrid-execute.xml b/reference/cubrid/functions/cubrid-execute.xml index 92109ec3c0..9c1bdb0030 100644 --- a/reference/cubrid/functions/cubrid-execute.xml +++ b/reference/cubrid/functions/cubrid-execute.xml @@ -20,48 +20,48 @@ intrequest_handle intoption - - The cubrid_execute function is used to execute the given SQL sentence. It executes the query by using conn_handle and SQL, and then returns the request handle created. It is used for simple execution of query, where the parameter binding is not needed. In addition, the cubrid_execute function is used to execute the prepared statement by means of cubrid_prepare and cubrid_bind. At this time, you need to specify arguments of request_handle and option. - - - You can use the option argument to tell whether to receive oid of the row after the execution, and, whether to execute the query in asynchronous mode. You can use it by setting the CUBRID_INCLUDE_OID and CUBRID_ASYNC using bitwise or operator. If the both variables are not explicitly given, they are not selected by default. - - - If the first argument is request_handle to execute the cubrid_prepare function, you can specify an option, CUBRID_ASYNC only. - + + The cubrid_execute function is used to execute the given SQL sentence. It executes the query by using conn_handle and SQL, and then returns the request handle created. It is used for simple execution of query, where the parameter binding is not needed. In addition, the cubrid_execute function is used to execute the prepared statement by means of cubrid_prepare and cubrid_bind. At this time, you need to specify arguments of request_handle and option. + + + You can use the option argument to tell whether to receive oid of the row after the execution, and, whether to execute the query in asynchronous mode. You can use it by setting the CUBRID_INCLUDE_OID and CUBRID_ASYNC using bitwise or operator. If the both variables are not explicitly given, they are not selected by default. + + + If the first argument is request_handle to execute the cubrid_prepare function, you can specify an option, CUBRID_ASYNC only. + &reftitle.parameters; - - - conn_handle - Connection handle. - - - SQL - SQL to be executed. - - - option - Query execution option CUBRID_INCLUDE_OID, CUBRID_ASYNC. - - - request_handle - cubrid_prepare handle. - - + + + conn_handle + Connection handle. + + + SQL + SQL to be executed. + + + option + Query execution option CUBRID_INCLUDE_OID, CUBRID_ASYNC. + + + request_handle + cubrid_prepare handle. + + &reftitle.returnvalues; - Request handle, when process is successful. + Request handle, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-fetch.xml b/reference/cubrid/functions/cubrid-fetch.xml index 9998a67b3b..2b97184dea 100644 --- a/reference/cubrid/functions/cubrid-fetch.xml +++ b/reference/cubrid/functions/cubrid-fetch.xml @@ -15,7 +15,7 @@ inttype - The cubrid_fetch function is used to get a single row from the query result. The cursor automatically moves to the next row after getting the result. + The cubrid_fetch function is used to get a single row from the query result. The cursor automatically moves to the next row after getting the result. @@ -23,7 +23,7 @@ &reftitle.parameters; - + req_handle Request handle. @@ -40,12 +40,12 @@ Result array or object, when process is successful. &false;, when process is unsuccessful. The result can be received either as an array or as an object, and you can decide which data type to use by setting the type argument. The type variable can be set to one of the following values: - - CUBRID_NUM : Numerical array (0-based) - CUBRID_ASSOC : Associative array - CUBRID_BOTH : Numerical & Associative array (default) - CUBRID_OBJECT : object that has the attribute name as the column name of query result - + + CUBRID_NUM : Numerical array (0-based) + CUBRID_ASSOC : Associative array + CUBRID_BOTH : Numerical & Associative array (default) + CUBRID_OBJECT : object that has the attribute name as the column name of query result + When type argument is omitted, the result will be received using CUBRID_BOTH option as default. When you want to receive query result in object data type, the column name of the result must obey the naming rules for identifiers in PHP. For example, column name such as "count(*)" cannot be received in object type. diff --git a/reference/cubrid/functions/cubrid-get-class-name.xml b/reference/cubrid/functions/cubrid-get-class-name.xml index b1ef46ef03..c0077c559d 100644 --- a/reference/cubrid/functions/cubrid-get-class-name.xml +++ b/reference/cubrid/functions/cubrid-get-class-name.xml @@ -15,7 +15,7 @@ stringoid - The cubrid_get_class_name function is used to get the class name from oid. + The cubrid_get_class_name function is used to get the class name from oid. @@ -23,7 +23,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -38,10 +38,10 @@ &reftitle.returnvalues; - Class name when process is successful. + Class name when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-get.xml b/reference/cubrid/functions/cubrid-get.xml index 786983996d..62413d7f3a 100644 --- a/reference/cubrid/functions/cubrid-get.xml +++ b/reference/cubrid/functions/cubrid-get.xml @@ -16,7 +16,7 @@ mixedattr - The cubrid_get function is used to get the attribute of the instance of the given oid. You can get single attribute by using string data type for the attr argument, or many attributes by using array data type for the attr argument. + The cubrid_get function is used to get the attribute of the instance of the given oid. You can get single attribute by using string data type for the attr argument, or many attributes by using array data type for the attr argument. @@ -24,7 +24,7 @@ &reftitle.parameters; - + conn_handle Connection handle. diff --git a/reference/cubrid/functions/cubrid-is-instance.xml b/reference/cubrid/functions/cubrid-is-instance.xml index d642b49236..c8f1576632 100644 --- a/reference/cubrid/functions/cubrid-is-instance.xml +++ b/reference/cubrid/functions/cubrid-is-instance.xml @@ -15,7 +15,7 @@ stringoid - The cubrid_is_instance function is used to check whether the instance pointed by the given oid exists or not. + The cubrid_is_instance function is used to check whether the instance pointed by the given oid exists or not. @@ -23,7 +23,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -38,13 +38,13 @@ &reftitle.returnvalues; - 1, if such instance exists; + 1, if such instance exists; - 0, if such instance does not exist; + 0, if such instance does not exist; - -1, in case of error + -1, in case of error diff --git a/reference/cubrid/functions/cubrid-load-from-glo.xml b/reference/cubrid/functions/cubrid-load-from-glo.xml index 2981f2ca0f..e31976c261 100644 --- a/reference/cubrid/functions/cubrid-load-from-glo.xml +++ b/reference/cubrid/functions/cubrid-load-from-glo.xml @@ -16,7 +16,7 @@ stringfile_name - The cubrid_load_from_glo function is used to read a data from a glo instance, and saves it in a designated file. + The cubrid_load_from_glo function is used to read a data from a glo instance, and saves it in a designated file. @@ -24,7 +24,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -43,10 +43,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-lock-read.xml b/reference/cubrid/functions/cubrid-lock-read.xml index 88040ac655..a67c79317e 100644 --- a/reference/cubrid/functions/cubrid-lock-read.xml +++ b/reference/cubrid/functions/cubrid-lock-read.xml @@ -15,7 +15,7 @@ stringoid - The cubrid_lock_read function is used to put read lock on the instance pointed by given oid. + The cubrid_lock_read function is used to put read lock on the instance pointed by given oid. @@ -23,7 +23,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -38,10 +38,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-lock-write.xml b/reference/cubrid/functions/cubrid-lock-write.xml index 2e0dd0e1e9..04e9526812 100644 --- a/reference/cubrid/functions/cubrid-lock-write.xml +++ b/reference/cubrid/functions/cubrid-lock-write.xml @@ -15,7 +15,7 @@ stringoid - The cubrid_lock_write function is used to put write lock on the instance pointed by the given oid. + The cubrid_lock_write function is used to put write lock on the instance pointed by the given oid. @@ -23,7 +23,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -38,10 +38,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-move-cursor.xml b/reference/cubrid/functions/cubrid-move-cursor.xml index 055086627d..90b53a7e22 100644 --- a/reference/cubrid/functions/cubrid-move-cursor.xml +++ b/reference/cubrid/functions/cubrid-move-cursor.xml @@ -16,10 +16,10 @@ intorigin - The cubrid_move_cursor function is used to move the current cursor location of req_handle by the value set in the offset argument, to the direction set in the origin argument. To set the origin argument, you can use CUBRID_CURSOR_FIRST for the first part of the result, CUBRID_CURSOR_CURRENT for the current location of the result, or CUBRID_CURSOR_LAST for the last part of the result. If origin argument is not explicitly designated, then the function uses CUBRID_CURSOR_CURRENT as its default value. + The cubrid_move_cursor function is used to move the current cursor location of req_handle by the value set in the offset argument, to the direction set in the origin argument. To set the origin argument, you can use CUBRID_CURSOR_FIRST for the first part of the result, CUBRID_CURSOR_CURRENT for the current location of the result, or CUBRID_CURSOR_LAST for the last part of the result. If origin argument is not explicitly designated, then the function uses CUBRID_CURSOR_CURRENT as its default value. - If the value of cursor movement range goes over the valid limit, then the cursor moves to the next location after the valid range for the cursor. For example, if you move 20 units in the result with the size of 10, then the cursor will move to 11th place and return CUBRID_NO_MORE_DATA. + If the value of cursor movement range goes over the valid limit, then the cursor moves to the next location after the valid range for the cursor. For example, if you move 20 units in the result with the size of 10, then the cursor will move to 11th place and return CUBRID_NO_MORE_DATA. @@ -27,7 +27,7 @@ &reftitle.parameters; - + req_handle Request handle. @@ -46,13 +46,13 @@ &reftitle.returnvalues; - CUBRID_CURSOR_SUCCESS, when process is successful. + CUBRID_CURSOR_SUCCESS, when process is successful. - CUBRID_NO_MORE_DATA, when it is not a valid cursor location. + CUBRID_NO_MORE_DATA, when it is not a valid cursor location. - CUBRID_CURSOR_ERROR, in case of error. + CUBRID_CURSOR_ERROR, in case of error. diff --git a/reference/cubrid/functions/cubrid-new-glo.xml b/reference/cubrid/functions/cubrid-new-glo.xml index 2c25c4a4e7..470007261c 100644 --- a/reference/cubrid/functions/cubrid-new-glo.xml +++ b/reference/cubrid/functions/cubrid-new-glo.xml @@ -16,7 +16,7 @@ stringfile_name - The cubrid_new_glo function is used to create a glo instance in the requested class (glo class). The glo created is a LO type, and is stored in the file_name file. + The cubrid_new_glo function is used to create a glo instance in the requested class (glo class). The glo created is a LO type, and is stored in the file_name file. @@ -24,7 +24,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -43,10 +43,10 @@ &reftitle.returnvalues; - Oid of the instance created, when process is successful. + Oid of the instance created, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. @@ -77,8 +77,8 @@ if ($oid){ cubrid_save_to_glo - cubrid_load_from_glo - cubrid_send_glo + cubrid_load_from_glo + cubrid_send_glo diff --git a/reference/cubrid/functions/cubrid-num-cols.xml b/reference/cubrid/functions/cubrid-num-cols.xml index adb63fc32b..546a268d62 100644 --- a/reference/cubrid/functions/cubrid-num-cols.xml +++ b/reference/cubrid/functions/cubrid-num-cols.xml @@ -14,7 +14,7 @@ intreq_handle - The cubrid_num_cols function is used to get the number of columns from the query result. It can only be used when the query executed is a select sentence. + The cubrid_num_cols function is used to get the number of columns from the query result. It can only be used when the query executed is a select sentence. @@ -22,7 +22,7 @@ &reftitle.parameters; - + req_handle Request handle. @@ -33,10 +33,10 @@ &reftitle.returnvalues; - Number of columns, when process is successful. + Number of columns, when process is successful. - -1, in case of error. + -1, in case of error. @@ -66,7 +66,7 @@ if ($req) { cubrid_execute - cubrid_num_rows + cubrid_num_rows diff --git a/reference/cubrid/functions/cubrid-num-rows.xml b/reference/cubrid/functions/cubrid-num-rows.xml index 9b308f8b99..fdd836dc32 100644 --- a/reference/cubrid/functions/cubrid-num-rows.xml +++ b/reference/cubrid/functions/cubrid-num-rows.xml @@ -14,7 +14,7 @@ intreq_handle - The cubrid_num_rows function is used to get the number of rows from the query result. You can use it only when the query executed is a select sentence. When you want to know such value for INSERT, UPDATE, or DELETE query, you have to use the cubrid_affected_rows function. The cubrid_num_rows function can only be used for synchronous query; it returns 0 when it is used for asynchronous query. + The cubrid_num_rows function is used to get the number of rows from the query result. You can use it only when the query executed is a select sentence. When you want to know such value for INSERT, UPDATE, or DELETE query, you have to use the cubrid_affected_rows function. The cubrid_num_rows function can only be used for synchronous query; it returns 0 when it is used for asynchronous query. @@ -22,7 +22,7 @@ &reftitle.parameters; - + req_handle Request handle. @@ -33,13 +33,13 @@ &reftitle.returnvalues; - Number of rows, when process is successful. + Number of rows, when process is successful. - 0 when the query was done in async mode. + 0 when the query was done in async mode. - -1, in case of error. + -1, in case of error. @@ -69,8 +69,8 @@ if ($req) { cubrid_execute - cubrid_num_cols - cubrid_affected_rows + cubrid_num_cols + cubrid_affected_rows diff --git a/reference/cubrid/functions/cubrid-prepare.xml b/reference/cubrid/functions/cubrid-prepare.xml index c7cb0ecab7..4e65745129 100644 --- a/reference/cubrid/functions/cubrid-prepare.xml +++ b/reference/cubrid/functions/cubrid-prepare.xml @@ -16,7 +16,7 @@ intoption - The cubrid_prepare function is a sort of API which represents SQL statements compiled previously to a given connection handle. This pre-compiled SQL statement will be included in the cubrid_prepare. Accccordingly, you can use this statement effectively to execute several times repeatedly or to process long data. Only a single statement can be used and a parameter may put a question mark (?) to appropriate area in the SQL statement. Add a parameter when you bind a value in the VALUES cluse of INSERT statement or in the WHERE clause. Note that it is allowed to bind a value to a MARK(?) by the cubrid_bind only. + The cubrid_prepare function is a sort of API which represents SQL statements compiled previously to a given connection handle. This pre-compiled SQL statement will be included in the cubrid_prepare. Accccordingly, you can use this statement effectively to execute several times repeatedly or to process long data. Only a single statement can be used and a parameter may put a question mark (?) to appropriate area in the SQL statement. Add a parameter when you bind a value in the VALUES cluse of INSERT statement or in the WHERE clause. Note that it is allowed to bind a value to a MARK(?) by the cubrid_bind only. @@ -24,7 +24,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -43,10 +43,10 @@ &reftitle.returnvalues; - Request handle, if process is successful; + Request handle, if process is successful; - &false;, if process is unsuccessful. + &false;, if process is unsuccessful. @@ -79,7 +79,7 @@ $sql = "insert into tbl values ( ?,?,?)"; cubrid_execute - cubrid_bind + cubrid_bind diff --git a/reference/cubrid/functions/cubrid-put.xml b/reference/cubrid/functions/cubrid-put.xml index dfae5e7c5e..d1d4b39cde 100644 --- a/reference/cubrid/functions/cubrid-put.xml +++ b/reference/cubrid/functions/cubrid-put.xml @@ -17,7 +17,7 @@ mixedvalue - The cubrid_put function is used to update an attribute of the instance of the given oid. You can update single attribute by using string data type to set attr. In such case, you can use integer, float-point, or string type data for the value argument. To update multiple number of attributes, you can disregard the attr argument, and set value argument with associative array data type. However, you cannot use the method for attribute of collection type. You have to use APIs related to collection type (cubrid_set_add, cubrid_set_drop, etc) when you want to use cubrid_put on collection typed attribute. + The cubrid_put function is used to update an attribute of the instance of the given oid. You can update single attribute by using string data type to set attr. In such case, you can use integer, float-point, or string type data for the value argument. To update multiple number of attributes, you can disregard the attr argument, and set value argument with associative array data type. However, you cannot use the method for attribute of collection type. You have to use APIs related to collection type (cubrid_set_add, cubrid_set_drop, etc) when you want to use cubrid_put on collection typed attribute. @@ -25,7 +25,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -48,10 +48,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. @@ -78,11 +78,11 @@ cubrid_put ($con, $oid, "hobbies", array("aa", "bb")); cubrid_get - cubrid_set_add - cubrid_set_drop - cubrid_seq_insert - cubrid_seq_drop - cubrid_seq_put + cubrid_set_add + cubrid_set_drop + cubrid_seq_insert + cubrid_seq_drop + cubrid_seq_put diff --git a/reference/cubrid/functions/cubrid-rollback.xml b/reference/cubrid/functions/cubrid-rollback.xml index 283d10d5d3..7fe733195c 100644 --- a/reference/cubrid/functions/cubrid-rollback.xml +++ b/reference/cubrid/functions/cubrid-rollback.xml @@ -11,13 +11,13 @@ &reftitle.description; intcubrid_rollback - intconn_handle + intconn_handle - The cubrid_rollback function executes rollback on the transaction pointed by conn_handle, currently in progress. + The cubrid_rollback function executes rollback on the transaction pointed by conn_handle, currently in progress. - Connection to server is closed after calling cubrid_rollback. Connection handle, however, is still valid. + Connection to server is closed after calling cubrid_rollback. Connection handle, however, is still valid. @@ -25,7 +25,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -36,10 +36,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. @@ -70,7 +70,7 @@ if ($req) { cubrid_commit - cubrid_disconnect + cubrid_disconnect diff --git a/reference/cubrid/functions/cubrid-save-to-glo.xml b/reference/cubrid/functions/cubrid-save-to-glo.xml index bc604999fc..0bc7ddd050 100644 --- a/reference/cubrid/functions/cubrid-save-to-glo.xml +++ b/reference/cubrid/functions/cubrid-save-to-glo.xml @@ -16,7 +16,7 @@ stringfile_name - The cubrid_save_to_glo function is used to save requested file in a glo instance. + The cubrid_save_to_glo function is used to save requested file in a glo instance. @@ -24,7 +24,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -43,10 +43,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. @@ -77,8 +77,8 @@ if ($req) { cubrid_new_glo - cubrid_load_from_glo - cubrid_send_glo + cubrid_load_from_glo + cubrid_send_glo diff --git a/reference/cubrid/functions/cubrid-schema.xml b/reference/cubrid/functions/cubrid-schema.xml index 345836240e..ec8601c965 100644 --- a/reference/cubrid/functions/cubrid-schema.xml +++ b/reference/cubrid/functions/cubrid-schema.xml @@ -17,7 +17,7 @@ stringattr_name - The cubrid_schema function is used to get the requested schema information from database. You have to designate class_name, if you want to get information on certain class, attr_name, if you want to get information on certain attribute (can be used only with CUBRID_ SCH_ATTR_PRIVILEGE). + The cubrid_schema function is used to get the requested schema information from database. You have to designate class_name, if you want to get information on certain class, attr_name, if you want to get information on certain attribute (can be used only with CUBRID_ SCH_ATTR_PRIVILEGE). @@ -25,7 +25,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -48,10 +48,10 @@ &reftitle.returnvalues; - array containing the schema information, when process is successful; + array containing the schema information, when process is successful; - -1, when process is unsuccessful + -1, when process is unsuccessful diff --git a/reference/cubrid/functions/cubrid-send-glo.xml b/reference/cubrid/functions/cubrid-send-glo.xml index 8c7c4a6bb9..0633ff5dde 100644 --- a/reference/cubrid/functions/cubrid-send-glo.xml +++ b/reference/cubrid/functions/cubrid-send-glo.xml @@ -15,7 +15,7 @@ stringoid - The cubrid_send_glo function is used to read data from glo instance and sends it to the PHP standard output. + The cubrid_send_glo function is used to read data from glo instance and sends it to the PHP standard output. @@ -23,7 +23,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -38,10 +38,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. @@ -70,8 +70,8 @@ if ($req) { cubrid_new_glo - cubrid_save_to_glo - cubrid_load_from_glo + cubrid_save_to_glo + cubrid_load_from_glo diff --git a/reference/cubrid/functions/cubrid-seq-drop.xml b/reference/cubrid/functions/cubrid-seq-drop.xml index a7b8522a15..5789f407c5 100644 --- a/reference/cubrid/functions/cubrid-seq-drop.xml +++ b/reference/cubrid/functions/cubrid-seq-drop.xml @@ -17,7 +17,7 @@ intindex - The cubrid_seq_drop function is used to delete an element you request from the given sequence type attribute in the database. + The cubrid_seq_drop function is used to delete an element you request from the given sequence type attribute in the database. @@ -25,7 +25,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -33,7 +33,7 @@ oid Oid of the instance you want to work with. - + attr_name Name of the attribute that you want to delete an element from. @@ -48,10 +48,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. @@ -82,7 +82,7 @@ if ($val == "1") { cubrid_seq_insert - cubrid_seq_put + cubrid_seq_put diff --git a/reference/cubrid/functions/cubrid-seq-insert.xml b/reference/cubrid/functions/cubrid-seq-insert.xml index f7922d63d0..a256383eec 100644 --- a/reference/cubrid/functions/cubrid-seq-insert.xml +++ b/reference/cubrid/functions/cubrid-seq-insert.xml @@ -18,7 +18,7 @@ stringseq_element - The cubrid_col_insert function is used to insert an element to a sequence type attribute in a requested location. + The cubrid_col_insert function is used to insert an element to a sequence type attribute in a requested location. @@ -26,7 +26,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -34,7 +34,7 @@ oid Oid of the instance you want to work with. - + attr_name Name of the attribute you want to insert an instance to. @@ -53,10 +53,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. @@ -80,7 +80,7 @@ cubrid_seq_insert ($con, $oid, "tel", 1, "02-3430-1300"); cubrid_seq_drop - cubrid_seq_put + cubrid_seq_put diff --git a/reference/cubrid/functions/cubrid-seq-put.xml b/reference/cubrid/functions/cubrid-seq-put.xml index dba10646b1..8359994e12 100644 --- a/reference/cubrid/functions/cubrid-seq-put.xml +++ b/reference/cubrid/functions/cubrid-seq-put.xml @@ -18,7 +18,7 @@ stringseq_element - The cubrid_seq_put function is used to update the content of the requested element in a sequent type attribute. + The cubrid_seq_put function is used to update the content of the requested element in a sequent type attribute. @@ -26,7 +26,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -34,7 +34,7 @@ oid Oid of the instance you want to work with. - + attr_name Name of the attribute that you want to update an element. @@ -53,10 +53,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. @@ -80,7 +80,7 @@ cubrid_seq_put ($con, $oid, "tel", 2, "02-3430-1300"); cubrid_seq_drop - cubrid_seq_insert + cubrid_seq_insert diff --git a/reference/cubrid/functions/cubrid-set-add.xml b/reference/cubrid/functions/cubrid-set-add.xml index 3005c4f247..e073f97fc0 100644 --- a/reference/cubrid/functions/cubrid-set-add.xml +++ b/reference/cubrid/functions/cubrid-set-add.xml @@ -17,7 +17,7 @@ stringset_element - The cubrid_set_add function is used to insert a single element to a set type attribute (set, multiset) you requested. + The cubrid_set_add function is used to insert a single element to a set type attribute (set, multiset) you requested. @@ -25,7 +25,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -33,7 +33,7 @@ oid Oid of the instance you want to work with. - + attr_name Name of the attribute you want to insert an element. @@ -48,10 +48,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-set-drop.xml b/reference/cubrid/functions/cubrid-set-drop.xml index a81e041384..759f642645 100644 --- a/reference/cubrid/functions/cubrid-set-drop.xml +++ b/reference/cubrid/functions/cubrid-set-drop.xml @@ -17,7 +17,7 @@ stringset_element - The cubrid_set_drop function is used to delete an element that you request from the given set type (set, multiset) attribute of the database. + The cubrid_set_drop function is used to delete an element that you request from the given set type (set, multiset) attribute of the database. @@ -25,7 +25,7 @@ &reftitle.parameters; - + conn_handle Connection handle. @@ -33,7 +33,7 @@ oid Oid of the instance you want to work with. - + attr_name Name of the attribute you want to delete an element from. @@ -48,10 +48,10 @@ &reftitle.returnvalues; - &true;, when process is successful. + &true;, when process is successful. - &false;, when process is unsuccessful. + &false;, when process is unsuccessful. diff --git a/reference/cubrid/functions/cubrid-version.xml b/reference/cubrid/functions/cubrid-version.xml index d764e05bc2..f876a01226 100644 --- a/reference/cubrid/functions/cubrid-version.xml +++ b/reference/cubrid/functions/cubrid-version.xml @@ -14,7 +14,7 @@ - The cubrid_version function is used to get the CUBRID PHP module’s version. + The cubrid_version function is used to get the CUBRID PHP module’s version. @@ -26,7 +26,7 @@ &reftitle.returnvalues; - Version information (eg. "1.2.0"). + Version information (eg. "1.2.0"). @@ -49,7 +49,7 @@ echo cubrid_version(); cubrid_error_code - cubrid_error_code_facility + cubrid_error_code_facility diff --git a/reference/cubrid/setup.xml b/reference/cubrid/setup.xml index 6ea3f09af5..757dc16db0 100644 --- a/reference/cubrid/setup.xml +++ b/reference/cubrid/setup.xml @@ -4,63 +4,14 @@ &reftitle.setup; -
- &reftitle.required; - - In order to have these functions available, you must install PHP API for CUBRID (CUBRID PHP API). +
+ &reftitle.required; + + In order to have these functions available, you must install PHP API for CUBRID (CUBRID PHP API). -
- -
- &reftitle.install; - - From the CUBRID homepage (CUBRID), download the PHP module. - -
-Installing PHP for Windows - - Create a directory named CUBRID in the directory where PHP is installed, and then copy the cubrid_err.msg file and the .dll file of the cubrid_php version you just downloaded. If you download CUBRID PHP version 5.1.4, add required settings as shown in the example below by editing the php.ini file. - - - - - - Once the configuration is complete, restart the web server. If you can see the CUBRID information as shown below when you check the PHP configuration using the phpinfo() function of PHP, it means that the installation was successful. -
-
- Installing PHP for Linux - - Unlike Windows, Linux provides its source code. Download the source code from the CUBRID homepage (CUBRID), and install it by following the INSTALL file of the compressed file. Also in the Linux version, edit and save the php.ini file, and then restart the web server. - - - - - - Check the configuration using phpinfo() function. - - - - - - As with the Windows version of PHP, if you can see the CUBRID information on the web browser, it means that the installation was successful. - -
-
+ + &reference.cubrid.configure;
&reftitle.runtime; @@ -70,7 +21,7 @@
&reftitle.resources; - There are two resource types used in the CUBRID. The first one is the link identifier for a database connection, the second a resource which holds the result of a query. + There are two resource types used in the CUBRID. The first one is the link identifier for a database connection, the second a resource which holds the result of a query.