PHP8 cubrid_send_glo

2024-03-30 21:11 更新

(PECL CUBRID >= 8.3.0)

cubrid_send_glo — 從 glo 讀取數(shù)據(jù)并將其發(fā)送到 std 輸出

說(shuō)明

cubrid_send_glo(resource $conn_identifier, string $oid): int

cubrid_send_glo() 函數(shù)用于從 glo 實(shí)例讀取數(shù)據(jù)并將其發(fā)送到 PHP 標(biāo)準(zhǔn)輸出。

參數(shù) 

conn_identifier

連接標(biāo)識(shí)符。

oid

要從中讀取數(shù)據(jù)的 glo 實(shí)例的 Oid。

返回值 

true,當(dāng)進(jìn)程成功時(shí)。

false,當(dāng)進(jìn)程不成功時(shí)。

示例 

示例 #1 cubrid_send_glo() example

<?php
$req = cubrid_execute ($con, "select image from person where id =1");
if ($req) {
  list ($oid) = cubrid_fetch($req);
  cubrid_close_request($req);
  Header ("Content-type: image/jpeg");
  cubrid_send_glo ($con, $oid);
}
?>

注釋 

注意:為了向下兼容,可以使用下列已廢棄的別名: cubrid_send_glo()
注意:此函數(shù)已從 CUBRID 3.1 中刪除。

參見 

  • cubrid_new_glo() - 創(chuàng)建 glo 實(shí)例
  • cubrid_save_to_glo() - 將請(qǐng)求的文件保存在 GLO 實(shí)例中
  • cubrid_load_from_glo() - 從 GLO 實(shí)例讀取數(shù)據(jù)并將其保存在文件中


以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)