PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<pg_lo_openpg_lo_read>
Last updated: Mon, 16 Jul 2012

pg_lo_read_all

(PHP 4 >= 4.2.0, PHP 5)

pg_lo_read_all --  读入整个大型对象并直接发送给浏览器

说明

int pg_lo_read_all ( resource large_object )

pg_lo_read_all() 读入一个大型对象并在(PHP)发送完所有待发的 header 之后将其直接发送给浏览器。主要目的是发送图片或声音等二进制数据。返回值为读入的字节数,如果出错则返回 FALSE

要使用大型对象(lo)接口,需要将其放置在事务块中。

注: 本函数以前的名字为 pg_loreadall()

参见 pg_lo_read()




<pg_lo_openpg_lo_read>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST