CUBRID_NEW_GLO(3) 1 CUBRID_NEW_GLO(3)cubrid_new_glo - Create a glo instanceSYNOPSIS
string cubrid_new_glo (resource $conn_identifier, string $class_name, string $file_name)
DESCRIPTION
The cubrid_new_glo(3) 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.
PARAMETERS
o $conn_identifier
-Connection identifier.
o $class_name
-Name of the class that you want to create a glo in.
o $file_name
-The file name that you want to save in the newly created glo.
RETURN VALUES
Oid of the instance created, when process is successful.
FALSE, when process is unsuccessful.
EXAMPLES
Example #1
cubrid_new_glo(3) example
<?php
$oid = cubrid_new_glo ($con, "glo", "input.jpg");
if ($oid){
// the type of column "image" is "object"
$req = cubrid_execute ($con, "insert into person(image) values($oid)");
if ($req) {
echo "image inserted successfully";
cubrid_close_request ($req);
cubrid_commit($con);
}
}
?>
NOTES
Note
For backward compatibility, the following deprecated alias may be used: cubrid_new_glo(3)
Note
This function is removed from CUBRID 3.1.
SEE ALSO cubrid_save_to_glo(3), cubrid_load_from_glo(3), cubrid_send_glo(3).
PHP Documentation Group CUBRID_NEW_GLO(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)
Hi
I just want to copy the file name from the input file. Below is the code I have used but the answer comes with quotation .
$ cat test.sh
file_name=\'$1\'
echo $file_name
$ sh test.sh grants.dat
'grants.dat'
How do I remove the quotation
Thanks (2 Replies)
Can someone please assist me, I'm trying to get vi to remove all the occurences of the text in a file i.e. "DEVICE=/dev/mt??". The "??" represents a number variable. Is there a globel search and delete command that I can use?
Thank You in Advance. (3 Replies)
Hi All,
I have to read in_dir and file_name values from a file and should check the count
For some instance lets say
in_dir hold /int/inbound
file_name hold EMP*.dat
below is one of lines in my shell script and we use AIX
file_cnt=`ls $in_dir/$file_name | wc -l`
even if some... (2 Replies)
Dear friends
i am getting error when i run below script
#!/bin/bash
echo "Enter the name of the file"
read file_name
if
then
If
then
echo "add some text to quit ctrld"
cat >> $file_name
else
echo "the file does not have write permission"
fi
else
echo "$file_name does not... (1 Reply)