cvs: peardoc /en/package/http/http-download guesscontenttype.xml sendarchive.xml setthrottledelay.xml

From: Date: Thu, 09 Jun 2005 20:02:53 +0000
Subject: cvs: peardoc /en/package/http/http-download guesscontenttype.xml sendarchive.xml setthrottledelay.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6269@lists.php.net to get a copy of this message
mike Thu Jun 9 16:02:53 2005 EDT Modified files: /peardoc/en/package/http/http-download guesscontenttype.xml sendarchive.xml setthrottledelay.xml Log: - update http://cvs.php.net/diff.php/peardoc/en/package/http/http-download/guesscontenttype.xml?r1=1.5&r2=1.6&ty=u Index: peardoc/en/package/http/http-download/guesscontenttype.xml diff -u peardoc/en/package/http/http-download/guesscontenttype.xml:1.5 peardoc/en/package/http/http-download/guesscontenttype.xml:1.6 --- peardoc/en/package/http/http-download/guesscontenttype.xml:1.5 Sat Mar 20 12:38:16 2004 +++ peardoc/en/package/http/http-download/guesscontenttype.xml Thu Jun 9 16:02:49 2005 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="package.http.http-download.guesscontenttype"> <refnamediv> <refname><function>HTTP_Download::guessContentType</function></refname> @@ -23,18 +23,27 @@ Use only if you send a file. </para> <para> - This only works if PHP is installed with ext/magic.mime - <emphasis>AND</emphasis> php.ini is setup correct! - </para> - <para> - Otherwise it will result in a FATAL ERROR. - </para> - <para> - <emphasis>So be WARNED!</emphasis> - </para> - <para> - Returns PEAR_Error if ext/magic.mime is not installed, - or content type couldn't be guessed. + First we try to use <classname>MIME_Type</classname>, if installed, to + detect the content type, else we check if ext/mime_magic is loaded and + properly configured. + </para> + <para> + Returns PEAR_Error if: + <simplelist> + <member> + <classname>MIME_Type</classname> failed to detect a proper content type + (<constant>HTTP_DOWNLOAD_E_INVALID_CONTENT_TYPE</constant>) + </member> + <member> + ext/magic.mime is not installed, or not properly configured + (<constant>HTTP_DOWNLOAD_E_NO_EXT_MMAGIC</constant>) + </member> + <member> + mime_content_type() couldn't guess content type or returned + a content type considered to be bogus by setContentType() + (<constant>HTTP_DOWNLOAD_E_INVALID_CONTENT_TYPE</constant>) + </member> + </simplelist> </para> </refsect1> http://cvs.php.net/diff.php/peardoc/en/package/http/http-download/sendarchive.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/en/package/http/http-download/sendarchive.xml diff -u peardoc/en/package/http/http-download/sendarchive.xml:1.3 peardoc/en/package/http/http-download/sendarchive.xml:1.4 --- peardoc/en/package/http/http-download/sendarchive.xml:1.3 Mon Jul 19 14:44:16 2004 +++ peardoc/en/package/http/http-download/sendarchive.xml Thu Jun 9 16:02:49 2005 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.http.http-download.sendarchive"> <refnamediv> <refname><function>HTTP_Download::sendArchive</function></refname> @@ -50,13 +50,26 @@ Send an archive created on the fly by <link linkend="package.filesystem.archive-tar"> <classname>Archive_Tar</classname> - </link>. + </link> or <classname>Archive_Zip</classname>. </para> <para> The parameter <varname>$files</varname> can be an array of files/directories or a space separated string of files/directories which should be packed to an archive. </para> + <para> + The parameter <varname>$type</varname> can be one of + <constant>HTTP_DOWNLOAD_TAR</constant>, + <constant>HTTP_DOWNLOAD_TGZ</constant>, + <constant>HTTP_DOWNLOAD_BZ2</constant> and + <constant>HTTP_DOWNLOAD_ZIP</constant>. + </para> + <note> + <para> + The usage of this method is deprecated. + Use <function>HTTP_Download_Archive::send</function> instead. + </para> + </note> </refsect1> <refsect1 id="package.http.http-download.sendarchive.parameter"> http://cvs.php.net/diff.php/peardoc/en/package/http/http-download/setthrottledelay.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/package/http/http-download/setthrottledelay.xml diff -u peardoc/en/package/http/http-download/setthrottledelay.xml:1.1 peardoc/en/package/http/http-download/setthrottledelay.xml:1.2 --- peardoc/en/package/http/http-download/setthrottledelay.xml:1.1 Tue Aug 31 13:17:03 2004 +++ peardoc/en/package/http/http-download/setthrottledelay.xml Thu Jun 9 16:02:49 2005 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.http.http-download.setthrottledelay"> <refnamediv> <refname><function>HTTP_Download::setThrottleDelay</function></refname> @@ -14,7 +14,7 @@ <function>HTTP_Download::setThrottleDelay</function> </funcdef> <paramdef> - int + float <parameter> <optional>$seconds = 0</optional> </parameter> @@ -44,7 +44,7 @@ <itemizedlist> <listitem> <para> - int + float <parameter> <optional>$seconds = 0</optional> </parameter>

« previous php.pear.doc (#6269) next »