Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #908
Difficulty: Medium
If a Unix shell command line ends with the hashtag #, then the job runs in the background, and the shell does not wait for the job to terminate before printing the prompt and waiting for the next command line.
True or False?
Linux & Unix Commands - Search Man Pages

cubrid_disconnect(3) [php man page]

CUBRID_DISCONNECT(3)							 1						      CUBRID_DISCONNECT(3)

cubrid_disconnect - Close a database connection

SYNOPSIS
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 connection

SYNOPSIS
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)

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Problem joining 2 files

Hi I have 2 files which look like File1 1245 1256 2345 2165 3245 9851 8514 6498 8547 2541 5242 and File2 (4 Replies)
Discussion started by: rochitsharma
4 Replies

2. UNIX for Dummies Questions & Answers

query on how to search for a line and read 4th word from that line

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)
Discussion started by: jaggesh
4 Replies

3. SCO

Problema con Sco 5.0.5 y corte de energía

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)
Discussion started by: sebpes
1 Replies

4. Shell Programming and Scripting

Archivo de datos con reg. duplicados

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)
Discussion started by: patrif1703
3 Replies

5. UNIX for Advanced & Expert Users

Tomcat Connection closed

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)
Discussion started by: lain
0 Replies

6. Shell Programming and Scripting

Archivo de salida con valores tabulados

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)
Discussion started by: m045530
1 Replies

7. HP-UX

Connection closed by foreign host

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)
Discussion started by: hiten.r.chauhan
4 Replies

8. Red Hat

find . -name '*.req' -mtime +2 -exec rm {} \; not deleting files

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)
Discussion started by: rehantayyab82
5 Replies

Featured Tech Videos