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_FREE_RESULT(3) 1 CUBRID_FREE_RESULT(3)cubrid_free_result - Free the memory occupied by the result dataSYNOPSIS
bool cubrid_free_result (resource $req_identifier)
DESCRIPTION
This function frees the memory occupied by the result data. It returns TRUE on success or FALSE on failure. Note that it can only frees
the client fetch buffer now, and if you want free all memory, use function cubrid_close_request(3).
PARAMETERS
o $req_identifier
-This is the request identifier.
RETURN VALUES
TRUE on success.
FALSE on failure.
EXAMPLES
Example #1
cubrid_free_result(3) example
<?php
$conn = cubrid_connect("localhost", 33000, "demodb");
$req = cubrid_execute($conn, "SELECT * FROM history WHERE host_year=2004 ORDER BY event_code");
$row = cubrid_fetch_assoc($req);
var_dump($row);
cubrid_free_result($req);
cubrid_close_request($req);
cubrid_disconnect($conn);
?>
The above example will output:
array(5) {
["event_code"]=>
string(5) "20005"
["athlete"]=>
string(12) "Hayes Joanna"
["host_year"]=>
string(4) "2004"
["score"]=>
string(5) "12.37"
["unit"]=>
string(4) "time"
}
PHP Documentation Group CUBRID_FREE_RESULT(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)