cvs: peardoc /en/package/http http-download.xml /en/package/http/http-download http-download.xml setbuffersize.xml setparams.xml
| From: | Michael Wallner | Date: | Thu, 12 Aug 2004 12:33:23 +0000 |
| Subject: | cvs: peardoc /en/package/http http-download.xml /en/package/http/http-download http-download.xml setbuffersize.xml setparams.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4743@lists.php.net to get a copy of this message | ||
mike Thu Aug 12 08:33:23 2004 EDT
Added files:
/peardoc/en/package/http/http-download setbuffersize.xml
Modified files:
/peardoc/en/package/http http-download.xml
/peardoc/en/package/http/http-download http-download.xml
setparams.xml
Log:
* add buffersize
http://cvs.php.net/diff.php/peardoc/en/package/http/http-download.xml?r1=1.7&r2=1.8&ty=u
Index: peardoc/en/package/http/http-download.xml
diff -u peardoc/en/package/http/http-download.xml:1.7 peardoc/en/package/http/http-download.xml:1.8
--- peardoc/en/package/http/http-download.xml:1.7 Tue Jun 8 10:07:32 2004
+++ peardoc/en/package/http/http-download.xml Thu Aug 12 08:33:23 2004
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<sect1 id="package.http.http-download">
<title>HTTP_Download</title>
@@ -12,6 +12,7 @@
&package.http.http-download.setresource;
&package.http.http-download.setgzip;
&package.http.http-download.setcache;
+ &package.http.http-download.setbuffersize;
&package.http.http-download.setcontenttype;
&package.http.http-download.setlastmodified;
&package.http.http-download.setcontentdisposition;
http://cvs.php.net/diff.php/peardoc/en/package/http/http-download/http-download.xml?r1=1.5&r2=1.6&ty=u
Index: peardoc/en/package/http/http-download/http-download.xml
diff -u peardoc/en/package/http/http-download/http-download.xml:1.5
peardoc/en/package/http/http-download/http-download.xml:1.6
--- peardoc/en/package/http/http-download/http-download.xml:1.5 Mon Jul 19 14:46:04 2004
+++ peardoc/en/package/http/http-download/http-download.xml Thu Aug 12 08:33:23 2004
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<refentry id="package.http.http-download.http-download">
<refnamediv>
@@ -96,6 +96,12 @@
<para>
<parameter>$params['contentdisposition']</parameter>
- content disposition
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>$params['buffersize']</parameter>
+ - amount of bytes read at once from files or resources
</para>
</listitem>
</itemizedlist>
http://cvs.php.net/diff.php/peardoc/en/package/http/http-download/setparams.xml?r1=1.7&r2=1.8&ty=u
Index: peardoc/en/package/http/http-download/setparams.xml
diff -u peardoc/en/package/http/http-download/setparams.xml:1.7
peardoc/en/package/http/http-download/setparams.xml:1.8
--- peardoc/en/package/http/http-download/setparams.xml:1.7 Mon Jul 19 14:46:46 2004
+++ peardoc/en/package/http/http-download/setparams.xml Thu Aug 12 08:33:23 2004
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<refentry id="package.http.http-download.setparams">
<refnamediv>
<refname><function>HTTP_Download::setParams</function></refname>
@@ -100,6 +100,12 @@
<para>
<parameter>$params['contentdisposition']</parameter>
- content disposition
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>$params['buffersize']</parameter>
+ - amount of bytes read at once from files or resources
</para>
</listitem>
</itemizedlist>
http://cvs.php.net/co.php/peardoc/en/package/http/http-download/setbuffersize.xml?r=1.1&p=1
Index: peardoc/en/package/http/http-download/setbuffersize.xml
+++ peardoc/en/package/http/http-download/setbuffersize.xml
<!-- $Revision: 1.1 $ -->
<refentry id="package.http.http-download.setbuffersize">
<refnamediv>
<refname><function>HTTP_Download::setBufferSize</function></refname>
<refpurpose>
Set size of buffer in bytes.
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
<funcdef>
mixed
<function>HTTP_Download::setBufferSize</function>
</funcdef>
<paramdef>
int
<parameter>
<optional>$size = 2097152</optional>
</parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="package.http.http-download.setbuffersize.desc">
&title.desc;
<para>
The amount of bytes specified as buffer size is the maximum amount
of data read at once from resources or files. The default size is 2M
(2097152 bytes).
</para>
<para>
Be aware that if you enable gzip compression and
you set a very low buffer size that the actual file size may grow
due to added gzip headers for each sent chunk of the specified size.
</para>
<para>
Returns <classname>PEAR_Error</classname>
(<constant>HTTP_DOWNLOAD_E_INVALID_PARAM</constant>)
if $size is not greater than 0 bytes.
</para>
</refsect1>
<refsect1 id="package.http.http-download.setbuffersize.parameter">
&title.param;
<para>
<itemizedlist>
<listitem>
<para>
int
<parameter>
<optional>$size = 2097152</optional>
</parameter>
- amount of bytes to buffer
</para>
</listitem>
</itemizedlist>
</para>
</refsect1>
<refsect1 id="package.http.http-download.setgzip.return">
&title.returns;
<para>
&return.success-pearerror;
</para>
</refsect1>
<refsect1 id="package.http.http-download.setbuffersize.note">
&title.note;
¬e.notstatic;
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->