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

From: Date: Tue, 16 Aug 2005 14:25:00 +0000
Subject: cvs: phpdoc-zh /reference/filesystem/functions chmod.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2334@lists.php.net to get a copy of this message
lm92 Tue Aug 16 10:25:00 2005 EDT Modified files: /phpdoc-zh/reference/filesystem/functions chmod.xml Log: updated to en version http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/chmod.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/filesystem/functions/chmod.xml diff -u phpdoc-zh/reference/filesystem/functions/chmod.xml:1.4 phpdoc-zh/reference/filesystem/functions/chmod.xml:1.5 --- phpdoc-zh/reference/filesystem/functions/chmod.xml:1.4 Mon Aug 18 16:51:02 2003 +++ phpdoc-zh/reference/filesystem/functions/chmod.xml Tue Aug 16 10:24:58 2005 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: dallas $ --> -<!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- $Author: lm92 $ --> +<!-- EN-Revision: 1.12 Maintainer: dallas Status: ready --> <refentry id="function.chmod"> <refnamediv> <refname>chmod</refname> @@ -27,9 +27,9 @@ <programlisting role="php"> <![CDATA[ <?php -chmod ("/somedir/somefile", 755); // Ê®½øÖÆÊý£¬¿ÉÄܲ»¶Ô -chmod ("/somedir/somefile", "u+rwx,go+rx"); // ×Ö·û´®£¬²»¶Ô -chmod ("/somedir/somefile", 0755); // °Ë½øÖÆÊý£¬ÕýÈ·µÄ mode Öµ +chmod("/somedir/somefile", 755); // Ê®½øÖÆÊý£¬¿ÉÄܲ»¶Ô +chmod("/somedir/somefile", "u+rwx,go+rx"); // ×Ö·û´®£¬²»¶Ô +chmod("/somedir/somefile", 0755); // °Ë½øÖÆÊý£¬ÕýÈ·µÄ mode Öµ ?> ]]> </programlisting> @@ -47,16 +47,16 @@ <![CDATA[ <?php // Read and write for owner, nothing for everybody else -chmod ("/somedir/somefile", 0600); +chmod("/somedir/somefile", 0600); // Read and write for owner, read for everybody else -chmod ("/somedir/somefile", 0644); +chmod("/somedir/somefile", 0644); // Everything for owner, read and execute for others -chmod ("/somedir/somefile", 0755); +chmod("/somedir/somefile", 0755); // Everything for owner, read and execute for owner's group -chmod ("/somedir/somefile", 0750); +chmod("/somedir/somefile", 0750); ?> ]]> </programlisting> @@ -71,6 +71,12 @@ </para> </note> &note.no-remote; + <note> + <simpara> + µ± &safemode; ´ò¿ªµÄʱºò£¬PHP »á¼ì²éËù²Ù×÷µÄÎļþÊÇ·ñºÍÕýÔÚÖ´ÐеĽű¾¾ßÓÐÏàͬµÄ + UID £¨ËùÓÐÕߣ©¡£Òª×¢ÒâµÄÊÇ£¬Äã²¢²»ÄÜÐÞ¸Ä SUID¡¢SGID ºÍ sticky bits¡£ + </simpara> + </note> <para> ²Î¼û <function>chown</function> ºÍ <function>chgrp</function>¡£ </para>

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