cvs: phpdoc-zh /reference/filesystem/functions fwrite.xml

From: Date: Sun, 14 Aug 2005 15:16:38 +0000
Subject: cvs: phpdoc-zh /reference/filesystem/functions fwrite.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2266@lists.php.net to get a copy of this message
lm92 Sun Aug 14 11:16:38 2005 EDT Modified files: /phpdoc-zh/reference/filesystem/functions fwrite.xml Log: updated to en version. Am I hijacked dallas' job before? http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/fwrite.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/filesystem/functions/fwrite.xml diff -u phpdoc-zh/reference/filesystem/functions/fwrite.xml:1.4 phpdoc-zh/reference/filesystem/functions/fwrite.xml:1.5 --- phpdoc-zh/reference/filesystem/functions/fwrite.xml:1.4 Fri Feb 28 03:22:08 2003 +++ phpdoc-zh/reference/filesystem/functions/fwrite.xml Sun Aug 14 11:16:38 2005 @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: dallas $ --> -<!-- EN-Revision: 1.7 Maintainer: lm92 Status: ready --> -<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> +<!-- $Revision: 1.5 $ --> +<!-- $Author: lm92 $ --> +<!-- EN-Revision: 1.13 Maintainer: dallas Status: ready --> <refentry id="function.fwrite"> <refnamediv> <refname>fwrite</refname> @@ -42,7 +41,7 @@ </note> <para> <example> - <title>Ò»¸ö¼òµ¥µÄ fwrite ·¶Àý</title> + <title>Ò»¸ö¼òµ¥µÄ <function>fwrite</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ <?php @@ -56,22 +55,22 @@ // Òò´Ë£¬ÎļþÖ¸Õ뽫»áÔÚÎļþµÄ¿ªÍ·£¬ // ÄǾÍÊǵ±ÎÒÃÇʹÓÃfwrite()µÄʱºò£¬$somecontent½«ÒªÐ´ÈëµÄµØ·½¡£ if (!$handle = fopen($filename, 'a')) { - print "²»ÄÜ´ò¿ªÎļþ $filename"; + echo "²»ÄÜ´ò¿ªÎļþ $filename"; exit; } // ½«$somecontentдÈëµ½ÎÒÃÇ´ò¿ªµÄÎļþÖС£ - if (!fwrite($handle, $somecontent)) { - print "²»ÄÜдÈëµ½Îļþ $filename"; + if (fwrite($handle, $somecontent) === FALSE) { + echo "²»ÄÜдÈëµ½Îļþ $filename"; exit; } - print "³É¹¦µØ½« $somecontent дÈëµ½Îļþ$filename"; + echo "³É¹¦µØ½« $somecontent дÈëµ½Îļþ$filename"; fclose($handle); } else { - print "Îļþ $filename ²»¿Éд"; + echo "Îļþ $filename ²»¿Éд"; } ?> ]]> @@ -81,7 +80,7 @@ <simpara> ²Î¼û <function>fread</function>£¬<function>fopen</function>£¬<function>fsockopen</function>£¬<function>popen</function> ºÍ - <function>fputs</function>¡£ + <function>file_put_contents</function>¡£ </simpara> </refsect1> </refentry>

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