Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: pg_lo_read - Manual
[go: Go Back, main page]

PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<pg_lo_read_allpg_lo_seek" width="11" height="7"/>
view the version of this page
Last updated: Sun, 07 May 2006

pg_lo_read

(PHP 4 >= 4.2.0, PHP 5)

pg_lo_read -- ラージオブジェクトを読み込む

説明

string pg_lo_read ( resource large_object [, int len] )

pg_lo_read()は、ラージオブジェクトから最大 len バイト分読み込み、文字列として返します。

ラージオブジェクトインターフェースは、トランザクションブロックの中で 使用する必要があります。

注意: この関数は、以前は pg_loread() と呼ばれていました。

パラメータ

large_object

pg_lo_open() によって返された PostgreSQL ラージオブジェクト (LOB) リソース。

len

返すデータの最大バイト数(オプション)。デフォルトは 8192 です。

返り値

ラージオブジェクトから len バイトのデータを 文字列で返します。エラー時には FALSE を返します。

例 1. pg_lo_read() の例

<?php
   $doc_oid
= 189762345;
  
$database = pg_connect("dbname=jacarta");
  
pg_query($database, "begin");
  
$handle = pg_lo_open($database, $doc_oid, "r");
  
$data = pg_lo_read($handle, 50000);
  
pg_query($database, "commit");
   echo
$data;
?>



add a note add a note User Contributed Notes
pg_lo_read
There are no user contributed notes for this page.

<pg_lo_read_allpg_lo_seek" width="11" height="7"/>
 Last updated: Sun, 07 May 2006
show source | credits | sitemap | contact | advertising | mirror sites 
Copyright © 2001-2006 The PHP Group
All rights reserved.
This mirror generously provided by: PacketBusiness, Inc.
Last updated: Wed Jun 28 13:19:26 2006 JST