Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cubrid_new_glo(3) [php man page]

CUBRID_NEW_GLO(3)							 1							 CUBRID_NEW_GLO(3)

cubrid_new_glo - Create a glo instance

SYNOPSIS
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_SAVE_TO_GLO(3)							 1						     CUBRID_SAVE_TO_GLO(3)

cubrid_save_to_glo - Save requested file in a GLO instance

SYNOPSIS
int cubrid_save_to_glo (resource $conn_identifier, string $oid, string $file_name) DESCRIPTION
The cubrid_save_to_glo(3) function is used to save requested file in a glo instance. PARAMETERS
o $conn_identifier -Connection identifier. o $oid -Oid of the glo instance that you want to save a file in. o $file_name -The name of the file that you want to save. RETURN VALUES
TRUE, when process is successful. FALSE, when process is unsuccessful. EXAMPLES
Example #1 cubrid_save_to_glo(3) example <?php $req = cubrid_execute ($con, "select image from person where id=1"); if ($req) { list ($oid) = cubrid_fetch($req); cubrid_close_request($req); $res = cubrid_save_to_glo ($con, $oid, "input.jpg"); if ($res) { echo "image changed successfully"; } } ?> NOTES
Note For backward compatibility, the following deprecated alias may be used: cubrid_save_to_glo(3) Note This function is removed from CUBRID 3.1. SEE ALSO
cubrid_new_glo(3), cubrid_load_from_glo(3), cubrid_send_glo(3). PHP Documentation Group CUBRID_SAVE_TO_GLO(3)
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Copying only the file name

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)
Discussion started by: Krishnaramjis
2 Replies

2. Shell Programming and Scripting

Pattern Matching and text deletion using VI

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

3. AIX

file_cnt=`ls $in_dir/$file_name | wc -l` not working

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)
Discussion started by: Dharv
2 Replies

4. UNIX for Beginners Questions & Answers

Error with file test script

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