cvs: phpdoc-zh /reference/filesystem/functions ftell.xml ftruncate.xml glob.xml is-dir.xml is-executable.xml is-file.xml is-link.xml is-readable.xml
is-uploaded-file.xml is-writable.xml is-writeable.xml

From: Date: Wed, 23 Apr 2003 23:58:53 +0000
Subject: cvs: phpdoc-zh /reference/filesystem/functions ftell.xml ftruncate.xml glob.xml is-dir.xml is-executable.xml is-file.xml is-link.xml is-readable.xml
is-uploaded-file.xml is-writable.xml is-writeable.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1381@lists.php.net to get a copy of this message
dallas Wed Apr 23 19:58:53 2003 EDT Modified files: /phpdoc-zh/reference/filesystem/functions ftell.xml ftruncate.xml glob.xml is-dir.xml is-executable.xml is-file.xml is-link.xml is-readable.xml is-uploaded-file.xml is-writable.xml is-writeable.xml Log: Translation completed.

Index: phpdoc-zh/reference/filesystem/functions/ftell.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/ftell.xml:1.3 --- /dev/null Wed Apr 23 19:58:53 2003 +++ phpdoc-zh/reference/filesystem/functions/ftell.xml Wed Apr 23 19:58:53 2003 @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> + <refentry id="function.ftell"> + <refnamediv> + <refname>ftell</refname> + <refpurpose>·µ»ØÎļþÖ¸Õë¶Á/дµÄλÖÃ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>int</type><methodname>ftell</methodname> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> + </methodsynopsis> + <para> + ·µ»ØÓÉ <parameter>handle</parameter> Ö¸¶¨µÄÎļþÖ¸ÕëµÄλÖã¬Ò²¾ÍÊÇÎļþÁ÷ÖÐµÄÆ«ÒÆÁ¿¡£ + </para> + <para> + Èç¹û³ö´í£¬·µ»Ø &false;¡£ + </para> + <para> + ÎļþÖ¸Õë±ØÐëÊÇÓÐЧµÄ£¬ÇÒ±ØÐëÖ¸ÏòÒ»¸öͨ¹ý <function>fopen</function> + »ò <function>popen</function> ³É¹¦´ò¿ªµÄÎļþ¡£ + </para> + <para> + ²Î¼û + <function>fopen</function>£¬<function>popen</function>£¬<function>fseek</function> + ºÍ <function>rewind</function>¡£ + </para> + </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 +indent-tabs-mode:nil +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 +--> Index: phpdoc-zh/reference/filesystem/functions/ftruncate.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/ftruncate.xml:1.3 --- /dev/null Wed Apr 23 19:58:53 2003 +++ phpdoc-zh/reference/filesystem/functions/ftruncate.xml Wed Apr 23 19:58:53 2003 @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> + <refentry id="function.ftruncate"> + <refnamediv> + <refname>ftruncate</refname> + <refpurpose>½«Îļþ½Ø¶Ïµ½¸ø¶¨µÄ³¤¶È</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>ftruncate</methodname> + <methodparam><type>resource</type><parameter>handle</parameter></methodparam> + <methodparam><type>int</type><parameter>size</parameter></methodparam> + </methodsynopsis> + <para> + ½ÓÊÜÎļþÖ¸Õë <parameter>handle</parameter> ×÷Ϊ²ÎÊý£¬²¢½«Îļþ´óС½ØÈ¡Îª + <parameter>size</parameter>¡£&return.success; + </para> + </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 +indent-tabs-mode:nil +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 +--> Index: phpdoc-zh/reference/filesystem/functions/glob.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/glob.xml:1.3 --- /dev/null Wed Apr 23 19:58:53 2003 +++ phpdoc-zh/reference/filesystem/functions/glob.xml Wed Apr 23 19:58:53 2003 @@ -0,0 +1,118 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> + <refentry id="function.glob"> + <refnamediv> + <refname>glob</refname> + <refpurpose>ѰÕÒÓëģʽƥÅäµÄÎļþ·¾¶</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>array</type><methodname>glob</methodname> + <methodparam><type>string</type><parameter>pattern</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam> + </methodsynopsis> + <para> + <function>glob</function> º¯ÊýÒÀÕÕ shell ʹÓõĹæÔòѰÕÒËùÓÐÓë + <parameter>pattern</parameter> Æ¥ÅäµÄÎļþ·¾¶¡£²»½øÐÐËõдÀ©Õ¹»ò²ÎÊýÌæ´ú¡£ + </para> + <para> + ·µ»ØÒ»¸ö°üº¬ÓÐÆ¥ÅäÎļþ/Ŀ¼µÄÊý×é¡£Èç¹û³ö´í·µ»Ø &false;¡£ + </para> + <para> + ÓÐЧ±ê¼ÇΪ£º + <itemizedlist> + <listitem> + <simpara> + <constant>GLOB_MARK</constant> - ÔÚÿ¸ö·µ»ØµÄÏîÄ¿ÖмÓÒ»¸öбÏß + </simpara> + </listitem> + <listitem> + <simpara> + <constant>GLOB_NOSORT</constant> - °´ÕÕÎļþÔÚĿ¼ÖгöÏÖµÄԭʼ˳Ðò·µ»Ø£¨²»ÅÅÐò£© + </simpara> + </listitem> + <listitem> + <simpara> + <constant>GLOB_NOCHECK</constant> - Èç¹ûûÓÐÎļþÆ¥ÅäÔò·µ»ØÓÃÓÚËÑË÷µÄģʽ + </simpara> + </listitem> + <listitem> + <simpara> + <constant>GLOB_NOESCAPE</constant> - ·´Ð±Ïß²»×ªÒåÔª×Ö·û + </simpara> + </listitem> + <listitem> + <simpara> + <constant>GLOB_BRACE</constant> - À©³ä {a,b,c} À´Æ¥Åä 'a'£¬'b' »ò 'c' + </simpara> + </listitem> + <listitem> + <simpara> + <constant>GLOB_ONLYDIR</constant> - ½ö·µ»ØÓëģʽƥÅäµÄĿ¼Ïî + </simpara> + </listitem> + </itemizedlist> + </para> + <note> + <simpara> + <constant>GLOB_ONLYDIR</constant> ²»¿ÉÓÃÓÚ Windows Ï¡£ + </simpara> + </note> + <para> + <example> + <title> + ÔõÑùÓà <function>glob</function> ·½±ãµØÌæ´ú <function>opendir</function> ºÍÏà¹Øº¯Êý + </title> + <programlisting role="php"> +<![CDATA[ +<?php +foreach (glob("*.txt") as $filename) { + echo "$filename size " . filesize($filename) . "\n"; +} + +/* Êä³öÀàËÆ£º + +funclist.txt size 44686 +funcsummary.txt size 267625 +quickref.txt size 137820 + +*/ +?> +]]> + </programlisting> + </example> + </para> + + &note.no-remote; + + <para> + ²Î¼û + <function>opendir</function>£¬<function>readdir</function>£¬<function>closedir</function> + ºÍ <function>fnmatch</function>¡£ + </para> + </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 +indent-tabs-mode:nil +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 +--> Index: phpdoc-zh/reference/filesystem/functions/is-dir.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/is-dir.xml:1.3 --- /dev/null Wed Apr 23 19:58:53 2003 +++ phpdoc-zh/reference/filesystem/functions/is-dir.xml Wed Apr 23 19:58:53 2003 @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> + <refentry id="function.is-dir"> + <refnamediv> + <refname>is_dir</refname> + <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñÊÇÒ»¸öĿ¼</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>is_dir</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + Èç¹ûÎļþÃû´æÔÚ²¢ÇÒΪĿ¼Ôò·µ»Ø &true;¡£Èç¹û + <parameter>filename</parameter> ÊÇÒ»¸öÏà¶Ô·¾¶£¬Ôò°´ÕÕµ±Ç°¹¤×÷Ŀ¼¼ì²éÆäÏà¶Ô·¾¶¡£ + </para> + + &note.clearstatcache; + + &note.no-remote; + + <para> + ²Î¼û + <function>chdir</function>£¬<link linkend="class.dir">dir</link>£¬<function>opendir</function>£¬<function>is_file</function> + ºÍ <function>is_link</function>¡£ + </para> + </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 +indent-tabs-mode:nil +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 +--> Index: phpdoc-zh/reference/filesystem/functions/is-executable.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/is-executable.xml:1.3 --- /dev/null Wed Apr 23 19:58:53 2003 +++ phpdoc-zh/reference/filesystem/functions/is-executable.xml Wed Apr 23 19:58:53 2003 @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> + <refentry id="function.is-executable"> + <refnamediv> + <refname>is_executable</refname> + <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñ¿ÉÖ´ÐÐ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>is_executable</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + Èç¹ûÎļþ´æÔÚÇÒ¿ÉÖ´ÐÐÔò·µ»Ø &true;¡£ + </para> + + &note.no-windows; + + &note.clearstatcache; + + &note.no-remote; + + <para> + ²Î¼û <function>is_file</function> ºÍ + <function>is_link</function>¡£ + </para> + </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 +indent-tabs-mode:nil +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 +--> Index: phpdoc-zh/reference/filesystem/functions/is-file.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/is-file.xml:1.3 --- /dev/null Wed Apr 23 19:58:53 2003 +++ phpdoc-zh/reference/filesystem/functions/is-file.xml Wed Apr 23 19:58:53 2003 @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> + <refentry id="function.is-file"> + <refnamediv> + <refname>is_file</refname> + <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñΪһ¸öÕý³£µÄÎļþ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>is_file</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + Èç¹ûÎļþ´æÔÚÇÒΪÕý³£µÄÎļþÔò·µ»Ø &true;¡£ + </para> + + &note.clearstatcache; + + &note.no-remote; + + <para> + ²Î¼û <function>is_dir</function> ºÍ + <function>is_link</function>¡£ + </para> + </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 +indent-tabs-mode:nil +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 +--> Index: phpdoc-zh/reference/filesystem/functions/is-link.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/is-link.xml:1.3 --- /dev/null Wed Apr 23 19:58:53 2003 +++ phpdoc-zh/reference/filesystem/functions/is-link.xml Wed Apr 23 19:58:53 2003 @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> + <refentry id="function.is-link"> + <refnamediv> + <refname>is_link</refname> + <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñΪһ¸ö·ûºÅÁ¬½Ó</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>is_link</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + Èç¹ûÎļþ´æÔÚ²¢ÇÒÊÇÒ»¸ö·ûºÅÁ¬½ÓÔò·µ»Ø &true;¡£ + </para> + + &note.clearstatcache; + + &note.no-remote; + + <para> + ²Î¼û <function>is_dir</function>£¬<function>is_file</function> + ºÍ <function>readlink</function>¡£ + </para> + </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 +indent-tabs-mode:nil +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 +--> Index: phpdoc-zh/reference/filesystem/functions/is-readable.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/is-readable.xml:1.3 --- /dev/null Wed Apr 23 19:58:53 2003 +++ phpdoc-zh/reference/filesystem/functions/is-readable.xml Wed Apr 23 19:58:53 2003 @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> + <refentry id="function.is-readable"> + <refnamediv> + <refname>is_readable</refname> + <refpurpose>Åжϸø¶¨ÎļþÃûÊÇ·ñ¿É¶Á</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>is_readable</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + Èç¹ûÎļþ´æÔÚ²¢ÇҿɶÁÔò·µ»Ø &true;¡£ + </para> + <para> + ¼Çס PHP Ò²ÐíÖ»ÄÜÒÔÔËÐÐ webserver µÄÓû§Ãû£¨Í¨³£Îª + 'nobody'£©À´·ÃÎÊÎļþ¡£²»¼ÆÈ밲ȫģʽµÄÏÞÖÆ¡£ + </para> + + &note.clearstatcache; + + &note.no-remote; + + <para> + ²Î¼û <function>is_writable</function>£¬<function>file_exists</function> + ºÍ <function>fgets</function>¡£ + </para> + </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 +indent-tabs-mode:nil +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 +--> Index: phpdoc-zh/reference/filesystem/functions/is-uploaded-file.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/is-uploaded-file.xml:1.3 --- /dev/null Wed Apr 23 19:58:53 2003 +++ phpdoc-zh/reference/filesystem/functions/is-uploaded-file.xml Wed Apr 23 19:58:53 2003 @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> + <refentry id="function.is-uploaded-file"> + <refnamediv> + <refname>is_uploaded_file</refname> + <refpurpose>ÅжÏÎļþÊÇ·ñÊÇͨ¹ý HTTP POST ÉÏ´«µÄ</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>is_uploaded_file</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + Èç¹û <parameter>filename</parameter> Ëù¸ø³öµÄÎļþÊÇͨ¹ý + HTTP POST ÉÏ´«µÄÔò·µ»Ø &true;¡£Õâ¿ÉÒÔÓÃÀ´È·±£¶ñÒâµÄÓû§ÎÞ·¨ÆÛÆ­½Å±¾È¥·ÃÎʱ¾²»ÄÜ·ÃÎʵÄÎļþ£¬ÀýÈç + <filename>/etc/passwd</filename>¡£ + </para> + <para> + ÕâÖÖ¼ì²éÏԵøñÍâÖØÒª£¬Èç¹ûÉÏ´«µÄÎļþÓпÉÄÜ»áÔì³É¶ÔÓû§»ò±¾ÏµÍ³µÄÆäËûÓû§ÏÔʾÆäÄÚÈݵϰ¡£ + </para> + <para> + <function>is_uploaded_file</function> ½ö¿ÉÓÃÓÚ + PHP 3 µÄ 3.0.16 °æÖ®ºó£¬ÒÔ¼° PHP 4 µÄ 4.0.2 + °æÖ®ºó¡£Èç¹ûÄãÖ´ÒâÒªÓÃÀϰ汾£¬¿ÉÒÔÓÃÏÂÃæµÄº¯ÊýÀ´±£»¤×Ô¼º£º + <note> + <para> + ÒÔÏÂÀý×Ó<emphasis>²»ÄÜ</emphasis>ÓÃÓÚ + PHP 4 µÄ 4.0.2 °æÖ®ºó¡£ËüÒÀÀµµÄ PHP ÄÚ²¿º¯ÊýÔڸð汾֮ºó¸Ä±äÁË¡£ + </para> + </note> + <programlisting role="php"> +<![CDATA[ +<?php +/* Userland test for uploaded file. */ +function is_uploaded_file($filename) { + if (!$tmp_file = get_cfg_var('upload_tmp_dir')) { + $tmp_file = dirname(tempnam('', '')); + } + $tmp_file .= '/' . basename($filename); + /* User might have trailing slash in php.ini... */ + return (ereg_replace('/+', '/', $tmp_file) == $filename); +} + +/* This is how to use it, since you also don't have + * move_uploaded_file() in these older versions: */ +if (is_uploaded_file($HTTP_POST_FILES['userfile'])) { + copy($HTTP_POST_FILES['userfile'], "/place/to/put/uploaded/file"); +} else { + echo "Possible file upload attack: filename '$HTTP_POST_FILES[userfile]'."; +} +?> +]]> + </programlisting> + </para> + <para> + ²Î¼û <function>move_uploaded_file</function>£¬ÒÔ¼°<link + linkend="features.file-upload">ÎļþÉÏ´«´¦Àí</link>Ò»ÕÂÖеļòµ¥Ê¹ÓÃÀý×Ó¡£ + </para> + </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 +indent-tabs-mode:nil +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 +--> Index: phpdoc-zh/reference/filesystem/functions/is-writable.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/is-writable.xml:1.3 --- /dev/null Wed Apr 23 19:58:53 2003 +++ phpdoc-zh/reference/filesystem/functions/is-writable.xml Wed Apr 23 19:58:53 2003 @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> + <refentry id="function.is-writable"> + <refnamediv> + <refname>is_writable</refname> + <refpurpose>Åжϸø¶¨µÄÎļþÃûÊÇ·ñ¿Éд</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <methodsynopsis> + <type>bool</type><methodname>is_writable</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + Èç¹ûÎļþ´æÔÚ²¢ÇÒ¿ÉдÔò·µ»Ø &true;¡£<parameter>filename</parameter> + ²ÎÊý¿ÉÒÔÊÇÒ»¸öÔÊÐí½øÐÐÊÇ·ñ¿Éд¼ì²éµÄĿ¼Ãû¡£ + </para> + <para> + ¼Çס PHP Ò²ÐíÖ»ÄÜÒÔÔËÐÐ webserver µÄÓû§Ãû£¨Í¨³£Îª + 'nobody'£©À´·ÃÎÊÎļþ¡£²»¼ÆÈ밲ȫģʽµÄÏÞÖÆ¡£ + </para> + + &note.clearstatcache; + + &note.no-remote; + + <para> + See also <function>is_readable</function>, + <function>file_exists</function>, and + <function>fwrite</function>. + </para> + </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 +indent-tabs-mode:nil +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 +--> Index: phpdoc-zh/reference/filesystem/functions/is-writeable.xml diff -u /dev/null phpdoc-zh/reference/filesystem/functions/is-writeable.xml:1.3 --- /dev/null Wed Apr 23 19:58:53 2003 +++ phpdoc-zh/reference/filesystem/functions/is-writeable.xml Wed Apr 23 19:58:53 2003 @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> + <refentry id="function.is-writeable"> + <refnamediv> + <refname>is_writeable</refname> + <refpurpose><function>is_writable</function> µÄ±ðÃû</refpurpose> + </refnamediv> + <refsect1> + <title>˵Ã÷</title> + <para> + ±¾º¯ÊýÊÇ <function>is_writable</function> µÄ±ðÃû¡£ + </para> + </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 +indent-tabs-mode:nil +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 +-->
« previous php.doc.zh (#1381) next »