cvs: phpdoc-zh /features file-upload.xml

From: Date: Fri, 20 Dec 2002 14:34:34 +0000
Subject: cvs: phpdoc-zh /features file-upload.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-923@lists.php.net to get a copy of this message
gregory Fri Dec 20 09:34:34 2002 EDT Modified files: /phpdoc-zh/features file-upload.xml Log: Up to date with the En version. Index: phpdoc-zh/features/file-upload.xml diff -u phpdoc-zh/features/file-upload.xml:1.2 phpdoc-zh/features/file-upload.xml:1.3 --- phpdoc-zh/features/file-upload.xml:1.2 Thu Aug 29 03:06:22 2002 +++ phpdoc-zh/features/file-upload.xml Fri Dec 20 09:34:34 2002 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: gregory $ --> -<!-- EN-Revision: 1.50 Maintainer: Gregory Status: ready --> +<!-- EN-Revision: 1.53 Maintainer: Gregory Status: ready --> <chapter id="features.file-upload"> <title>ÎļþÉÏ´«´¦Àí</title> @@ -256,6 +256,39 @@ <sect1 id="features.file-upload.put-method"> <title>¶Ô PUT ·½·¨µÄÖ§³Ö</title> + <simpara> + PHP 3 ºÍ PHP 4 ¶Ô PUT ·½·¨µÄÖ§³ÖÓÐËù²»Í¬¡£ÔÚ PHP 4 ÖУ¬ÎÒÃDZØÐëʹÓñê×¼µÄÊäÈëÁ÷À´¶Áȡһ¸ö HTTP PUT µÄÄÚÈÝ¡£ + </simpara> + <para> + <example> + <title>Óà PHP 4 À´±£´æ HTTP PUT Îļþ</title> + <programlisting role="php"> +<![CDATA[ +<?php +/* PUT data comes in on the stdin stream */ +$putdata = fopen("php://stdin","r"); + +/* Open a file for writting */ +$fp = fopen("myputfile.ext","w"); + +/* Read the data 1kb at a time + and write to the file */ +while ($data = fread($putdata,1024)) +fwrite($fp,$data); + +/* Close the streams */ +fclose($fp); +fclose($putdata); +?> +]]> + </programlisting> + </example> + </para> + <note> + <para> + ÒÔÏÂÎĵµµÄÄÚÈݽö¶Ô PHP 3 ÊÊÓᣠ+ </para> + </note> <para> PHP Ìṩ¶ÔÖîÈç Netscape Composer ºÍ W3C Amaya µÈ¿Í»§¶ËʹÓÃµÄ HTTP PUT ·½·¨µÄÖ§³Ö¡£PUT ÇëÇó±ÈÎļþÉÏ´«Òª¼òµ¥µÄ¶à£¬ËüÃÇÒ»°ãµÄÐÎʽΪ£º

« previous php.doc.zh (#923) next »