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 | conferences | my php.net

search for in the

pg_lo_seek" width="11" height="7"/> <pg_lo_read_all
Last updated: Fri, 03 Oct 2008

view this page in

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($handle50000);
   
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_seek" width="11" height="7"/> <pg_lo_read_all
Last updated: Fri, 03 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites