CUBRID_CLOSE_PREPARE(3) 1 CUBRID_CLOSE_PREPARE(3)cubrid_close_prepare - Close the request handleSYNOPSIS
bool cubrid_close_prepare (resource $req_identifier)
DESCRIPTION
The cubrid_close_prepare(3) function closes the request handle given by the $req_identifier argument, and releases the memory region
related to the handle. It is an alias of cubrid_close_request(3).
PARAMETERS
o $req_identifier
-Request identifier.
RETURN VALUES
Return TRUE on success.
EXAMPLES
Example #1
cubrid_close_prepare(3) example
<?php
$con = cubrid_connect ("localhost", 33000, "demodb", "dba", "");
if ($con) {
echo "connected successfully";
$req = cubrid_execute ( $con, "select * from members",
CUBRID_INCLUDE_OID | CUBRID_ASYNC);
if ($req) {
while ( list ($id, $name) = cubrid_fetch ($req) ){
echo $id;
echo $name;
}
cubrid_close_prepare($req); // or you can use cubrid_close_request($req)
}
cubrid_disconnect($con);
}
?>
SEE ALSO cubrid_close_request(3).
PHP Documentation Group CUBRID_CLOSE_PREPARE(3)
Check Out this Related Man Page
CUBRID_DISCONNECT(3) 1 CUBRID_DISCONNECT(3)cubrid_disconnect - Close a database connectionSYNOPSIS
bool cubrid_disconnect ([resource $conn_identifier])
DESCRIPTION
The cubrid_disconnect(3) function closes the connection handle and disconnects from server. If any request handle is not closed at this
point, it will be closed. It is similar to the CUBRID MySQL compatible function cubrid_close(3).
PARAMETERS
o $conn_identifier
-Connection identifier.
RETURN VALUES
TRUE, when process is successful.
FALSE, when process is unsuccessful.
EXAMPLES
Example #1
cubrid_disconnect(3) example
<?php
$con = cubrid_connect ("localhost", 33000, "demodb");
if ($con) {
echo "connected successfully";
$req = cubrid_execute( $con, "create table person(id int,name char(10))");
if ($req) {
cubrid_close_request($req);
cubrid_commit($con);
} else {
cubrid_rollback($con);
}
$req = cubrid_execute( $con, "insert into person values(1,'James')");
if ($req) {
cubrid_close_request($req);
cubrid_commit($con);
} else {
cubrid_rollback($con);
}
cubrid_disconnect($con);
}
?>
SEE ALSO cubrid_close(3), cubrid_connect(3), cubrid_connect_with_url(3).
PHP Documentation Group CUBRID_DISCONNECT(3)
check this out
ls -l nmo*
-rwsr-s--- 1 root dba 19312 Mar 31 14:44 nmo
-rw-r----- 1 oracle dba 0 May 19 2004 nmo0
-rwxr-x--- 1 oracle dba 16512 Mar 31 14:44 nmocat
# rm nmo0
nmo0: No such file or directory
# id
uid=0(root) gid=1(other)
what... (8 Replies)
Hi,
It seems someone has created files instead of actually running the commands, as below:
-rw-r--r-- 1 oracle92 dba 0 Mar 2 11:19 PRIML_070302.ok
-rw-r--r-- 1 oracle92 dba 557 Mar 2 11:20 PRIVH_070302.dat
-rw-r--r-- 1 oracle92 dba 0 Mar 12 11:57... (2 Replies)
Hi Masters ,
I have a file whose header is like
HDRCZECM8CZCM000000881 SVR00120100401160828+020020100401160828+0200CZK
There is a space between 1 and S ,my req is to chng the space to T
I tried echo `head -1 CDCZECM8CZCM000000881` | sed 's/ /T/'
it works ,but how can I modify in... (5 Replies)
i want to remove *.req files from directory
/opt/FFCL8001/oracle/inst/apps/FFCL8001_lhrho/logs/appl/conc/log
i executed command find . -name '*.req' -mtime +2 -exec rm {} \;
but it is running since hours and free space in /opt is same as old 7.4 GB .
why it is not removing files ? (5 Replies)
Please help me on below req
Data in file
ARIZONA HCPAZ 47
ARIZONA HCPAZCONT 3056
ARIZONA AZA 20
CALIFORNIA HC06 878
CALIFORNIA LC04 51
CALIFORNIA LC06 4039
CALIFORNIA HCPCACONT 4960
THE CAMDEN GROUP CAM 83... (7 Replies)