php man page for cubrid_new_glo

Query: cubrid_new_glo

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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)
Related Man Pages
cubrid_lock_read(3) - php
cubrid_close(3) - php
cubrid_get_class_name(3) - php
cubrid_save_to_glo(3) - php
cubrid_seq_insert(3) - php
Similar Topics in the Unix Linux Community
Copying only the file name
Pattern Matching and text deletion using VI
file_cnt=`ls $in_dir/$file_name | wc -l` not working
Error with file test script