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 Out this Related Man Page
CUBRID_CLOSE(3) 1 CUBRID_CLOSE(3)cubrid_close - Close CUBRID connectionSYNOPSIS
bool cubrid_close ([resource $conn_identifier])
DESCRIPTION
The cubrid_close(3) function ends the transaction currently in process, closes the connection handle and disconnects from server. If there
is any request handles not closed yet at this point, they will be closed. It is similar to the CUBRID function cubrid_disconnect(3).
PARAMETERS
o $conn_identifier
-The CUBRID connection identifier. If the connection identifier is not specified, the last connection opened by cubrid_connect(3)
is assumed.
RETURN VALUES
TRUE, when process is successful.
FALSE, when process is unsuccessful.
EXAMPLES
Example #1
cubrid_close(3) example
<?php
$con = cubrid_connect ("localhost", 33000, "demodb");
if ($con) {
echo "connected successfully";
$req = cubrid_execute ( $con, "insert into person values(1,'James')");
if ($req) {
cubrid_close_request ($req);
cubrid_commit ($con);
} else {
cubrid_rollback ($con);
}
cubrid_close ($con);
}
?>
SEE ALSO cubrid_disconnect(3), cubrid_connect(3), cubrid_connect_with_url(3).
PHP Documentation Group CUBRID_CLOSE(3)
Assume I have a text file as below:
me
con pi
ind ken
pras ur
me
con rome
ind kent
pras urs
pintu
con mys
ind pan
pras ki
con kit
ind sys
My requirement,
I need to search for "con rome" and if exists, then print 4th word from rome, i.e in above example, since "con rome"... (4 Replies)
Hola Foro.
Luego de un corte de energía al reiniciar el equipo con SCO Unix 5.0.5 me dice cuando inicio en modo normal cuando monta el directorio /u lo siguiente:
Possibly damaged file system. Mount failed. No space left on device (error 28)
En otra ocasión quedo con este mensaje:
"NO... (1 Reply)
Hola , tengo un archivo de texto con 5 campos los cuales tiene en el segundo campo duplicado varios movientos con diferentes fechas y horas.
id num fecha hora valor3
1 2222 10/12/09 10:01 1000
2 2222 11/12/09 11:04 3000
3 4556 09/12/08 12:22 1900
4 4556 12/12/09 11:00 2900
5 1111... (3 Replies)
Hi
how can do why a process closed a connection?
# lsof -i tcp:8080
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
java 5851 tomcat 29u IPv6 73216185 TCP *:webcache (LISTEN)
# telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).... (0 Replies)
Ojala puedan ayudarme, les platico
Tengo un archivo de entrada con 10 columnas de datos, de el utilizando el grep -c extraigo a variables (var1, var2, var, var4. . .)la suma de datos que cumplen una condición (un string)
Ahora quiero mandar el valor de estas variables a un archivo de salida... (1 Reply)
I am trying to connect to my HP server from remote machine.
It gets connected but once credential are provided the connection is closed.
adroit:/home/seo/hitendra 32 ] telnet myserv1
Trying...
Connected to myserv1.
Escape character is '^]'.
Local flow control on
Telnet TERMINAL-SPEED... (4 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)