cvs: phpdoc-ja /reference/filesystem/functions glob.xml is-readable.xml is-uploaded-file.xml is-writable.xml link.xml linkinfo.xml mkdir.xml
move-uploaded-file.xml readfile.xml readlink.xml rename.xml rewind.xml rmdir.xml stat.xml symlink.xml tempnam.xml umask.xml
| From: | Hideyuki Shimooka | Date: | Sat, 23 Jul 2005 08:37:28 +0000 |
| Subject: | cvs: phpdoc-ja /reference/filesystem/functions glob.xml is-readable.xml is-uploaded-file.xml is-writable.xml link.xml linkinfo.xml mkdir.xml move-uploaded-file.xml readfile.xml readlink.xml rename.xml rewind.xml rmdir.xml stat.xml symlink.xml tempnam.xml umask.xml |
||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-1050@lists.php.net to get a copy of this message | ||
shimooka Sat Jul 23 04:37:28 2005 EDT
Modified files:
/phpdoc-ja/reference/filesystem/functions glob.xml is-readable.xml
is-uploaded-file.xml
is-writable.xml link.xml
linkinfo.xml mkdir.xml
move-uploaded-file.xml
readfile.xml readlink.xml
rename.xml rewind.xml
rmdir.xml stat.xml
symlink.xml tempnam.xml
umask.xml
Log:
translation updated
http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/glob.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/filesystem/functions/glob.xml diff -u phpdoc-ja/reference/filesystem/functions/glob.xml:1.4 phpdoc-ja/reference/filesystem/functions/glob.xml:1.5 --- phpdoc-ja/reference/filesystem/functions/glob.xml:1.4 Mon Nov 22 23:45:33 2004 +++ phpdoc-ja/reference/filesystem/functions/glob.xml Sat Jul 23 04:37:24 2005 @@ -1,8 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.19 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.glob"> <refnamediv> - <refname>glob</refname> + <refname>glob</refname> <refpurpose>ãã¿ã¼ã³ã«ããããããã¹åãæ¢ã</refpurpose> </refnamediv> <refsect1> @@ -13,8 +15,10 @@ <methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam> </methodsynopsis> <para> - <function>glob</function>ã¯ã·ã§ã«ã§ä½¿ãããã«ã¼ã«ã«åºã¥ã㦠- <parameter>pattern</parameter>ã«ãããããå ¨ã¦ã®ãã¹åãæ¤ç´¢ãã¾ãã + <function>glob</function> 颿°ã¯ glibc ã® glob() + 颿°ã§ä½¿ãããã«ã¼ã«ã«åºã¥ã㦠+ <parameter>pattern</parameter> ã«ãããããå ¨ã¦ã®ãã¹åãæ¤ç´¢ãã¾ãã + ã«ã¼ã«ã¯ãä¸è¬ã®ã·ã§ã«ã§ä½¿ãããã«ã¼ã«ã¨ä¼¼ã¦ãã¾ãã ãã«ãã®å±éããã©ã¡ã¼ã¿ç½®æã¯è¡ããã¾ããã </para> <para> @@ -48,27 +52,40 @@ </listitem> <listitem> <simpara> - <constant>GLOB_BRACE</constant> - Expands {a,b,c} ã 'a', 'b', - or 'c' + <constant>GLOB_BRACE</constant> - Expands {a,b,c} ã 'a', 'b', + or 'c' </simpara> </listitem> <listitem> <simpara> <constant>GLOB_ONLYDIR</constant> - ãã¿ã¼ã³ã«ããããããã£ã¬ã¯ããªã®ã¿ãè¿ãã¾ã </simpara> + <note> + <simpara> + PHP 4.3.3 以åã§ã¯ã<constant>GLOB_ONLYDIR</constant> 㯠+ Windows ã GNU C ã©ã¤ãã©ãªã使ç¨ããªãä»ã®ã·ã¹ãã ã§ã¯å©ç¨ + <emphasis role="strong">ã§ãã¾ããã§ãã</emphasis> ã + </simpara> + </note> + </listitem> + <listitem> + <simpara> + <constant>GLOB_ERR</constant> - (ãã£ã¬ã¯ããªãèªããªããªã©ã®) + èªã¿è¾¼ã¿ã¨ã©ã¼æã«åæ¢ãã¾ããããã©ã«ãã§ã¯ã¨ã©ã¼ã¯ç¡è¦ããã¾ãã + </simpara> + <note> + <simpara> + <constant>GLOB_ERR</constant> 㯠PHP 5.1 ã§è¿½å ããã¾ããã + </simpara> + </note> </listitem> </itemizedlist> </para> - <note> - <simpara> - <constant>GLOB_ONLYDIR</constant> ã¯Windowsã§ã¯ä½¿ç¨ã§ãã¾ããã - </simpara> - </note> <para> <example> <title> - Convenient way how <function>glob</function> can replace - <function>opendir</function> and friends. + <function>glob</function> ã <function>opendir</function> + ã¨é¢é£ãã颿°ç¾¤ã®ä»£æ¿çã«ãªããã示ãç°¡ä¾¿ãªæ¹æ³ </title> <programlisting role="php"> <![CDATA[ @@ -76,26 +93,29 @@ foreach (glob("*.txt") as $filename) { echo "$filename size " . filesize($filename) . "\n"; } - -/* Output will look something like: - +?> +]]> + </programlisting> + <para> + åºåã¯æ¬¡ã®éãã§ã: + </para> + <screen> +<![CDATA[ funclist.txt size 44686 funcsummary.txt size 267625 quickref.txt size 137820 - -*/ -?> ]]> - </programlisting> + </screen> </example> </para> - + ¬e.no-remote; - + <para> <function>opendir</function>, <function>readdir</function>, - <function>closedir</function>, <function>fnmatch</function>ãåç §ãã¦ãã ããã + <function>closedir</function>, <function>fnmatch</function> + ãåç §ãã¦ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/is-readable.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/is-readable.xml diff -u phpdoc-ja/reference/filesystem/functions/is-readable.xml:1.5 phpdoc-ja/reference/filesystem/functions/is-readable.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/is-readable.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/is-readable.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.is-readable"> <refnamediv> <refname>is_readable</refname> @@ -21,14 +23,31 @@ ã¤ã«ã«ã¢ã¯ã»ã¹ãããã¨ãè¦ãã¦ããã¦ãã ãããã»ã¼ãã¢ã¼ãã®å¶é㯠åãã¾ããã </para> + <para> + <example> + <title><function>is_writable</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$filename = 'test.txt'; +if (is_readable($filename)) { + echo 'The file is readable'; +} else { + echo 'The file is not readable'; +} +?> +]]> + </programlisting> + </example> + </para> ¬e.clearstatcache; - ¬e.no-remote; + &tip.fopen-wrapper.stat; <para> - <function>is_writable</function>, - <function>file_exists</function>, + <function>is_writable</function>, + <function>file_exists</function>, <function>fgets</function>ãåç §ãã¦ãã ããã </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/is-uploaded-file.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/is-uploaded-file.xml diff -u phpdoc-ja/reference/filesystem/functions/is-uploaded-file.xml:1.5 phpdoc-ja/reference/filesystem/functions/is-uploaded-file.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/is-uploaded-file.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/is-uploaded-file.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.20 --> -<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.is-uploaded-file"> <refnamediv> <refname>is_uploaded_file</refname> @@ -27,6 +29,30 @@ æ´ãããå¯è½æ§ããããããç¹ã«éè¦ã§ãã </para> <para> + é©åã«åä½ãããããã颿° <function>is_uploaded_file</function> + 㯠$_FILES['userfile']['tmp_name'] ã®ãããªå¼æ°ãå¿ è¦ã¨ãã¾ãã + ã¢ãããã¼ãããããã¡ã¤ã«ã®ã¯ã©ã¤ã¢ã³ããã·ã³ä¸ã§ã®åå + $_FILES['userfile']['name'] ã§ã¯åä½ãã¾ããã + </para> + <example> + <title><function>is_uploaded_file</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +if (is_uploaded_file($_FILES['userfile']['tmp_name'])) { + echo "File ". $_FILES['userfile']['name'] ." uploaded successfully.\n"; + echo "Displaying contents\n"; + readfile($_FILES['userfile']['tmp_name']); +} else { + echo "Possible file upload attack: "; + echo "filename '". $_FILES['userfile']['tmp_name'] . "'."; +} + +?>]]> + </programlisting> + </example> + <para> <function>is_uploaded_file</function>ã¯ã PHP 3.0.16 ããå¾ã®ãã¼ã¸ã§ã³ã® PHP 3 ããã³ 4.0.2 以 éã®ãã¼ã¸ã§ã³ã® PHP 4 ã§ã®ã¿å©ç¨å¯è½ã§ãã @@ -38,21 +64,26 @@ ããã¯ãã®ãã¼ã¸ã§ã³ä»¥éã§PHPã®å é¨å¦çã夿´ãããããã§ãã </para> </note> + </para> + <example> + <title>PHP 4 < 4.0.3 ã«ããã <function>is_uploaded_file</function> + ã®ä¾</title> <programlisting role="php"> <![CDATA[ <?php -/* Userland test for uploaded file. */ -function is_uploaded_file($filename) { +/* ã¢ãããã¼ãããããã¡ã¤ã«ã®ãã¹ã */ +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... */ + /* ã¦ã¼ã¶ã¼ã¯ 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: */ +/* 以ä¸ã¯ãã®é¢æ°ã®ä½¿ç¨æ¹æ³ããããå¤ããã¼ã¸ã§ã³ã«ã¯ + * move_uploaded_file() ããªãã */ if (is_uploaded_file($HTTP_POST_FILES['userfile'])) { copy($HTTP_POST_FILES['userfile'], "/place/to/put/uploaded/file"); } else { @@ -61,7 +92,7 @@ ?> ]]> </programlisting> - </para> + </example> <para> ç°¡åãªä½¿ç¨ä¾ã«é¢ãã¦ã¯ã<function>move_uploaded_file</function>ã ãã³<link linkend="features.file-upload">ãã¡ã¤ã«ã¢ãããã¼ãã®å¦ http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/is-writable.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/is-writable.xml diff -u phpdoc-ja/reference/filesystem/functions/is-writable.xml:1.5 phpdoc-ja/reference/filesystem/functions/is-writable.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/is-writable.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/is-writable.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.27 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.is-writable"> <refnamediv> <refname>is_writable</refname> @@ -22,14 +24,31 @@ ã§ãã¡ã¤ã«ã«ã¢ã¯ã»ã¹ãããã¨ãè¦ãã¦ããã¦ãã ããã ã»ã¼ãã¢ã¼ãã®å¶éã¯åãã¾ããã </para> + <para> + <example> + <title><function>is_writable</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$filename = 'test.txt'; +if (is_writable($filename)) { + echo 'The file is writable'; +} else { + echo 'The file is not writable'; +} +?> +]]> + </programlisting> + </example> + </para> - ¬e.clearstatcache; - - ¬e.no-remote; + ¬e.clearstatcache; + + &tip.fopen-wrapper.stat; <para> <function>is_readable</function>, - <function>file_exists</function>, + <function>file_exists</function>, <function>fwrite</function>ãåç §ãã ããã </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/link.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/link.xml diff -u phpdoc-ja/reference/filesystem/functions/link.xml:1.5 phpdoc-ja/reference/filesystem/functions/link.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/link.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/link.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.link"> <refnamediv> <refname>link</refname> @@ -15,11 +17,15 @@ </methodsynopsis> <para> <function>link</function>ã¯ãã¼ããªã³ã¯ã使ãã¾ãã + &return.success; </para> + ¬e.no-remote; + ¬e.no-windows; + <para> ã·ã³ããªãã¯ãªã³ã¯ã使ãã<function>symlink</function>ã - <function>linkinfo</function>ã<function>readlink</function> + <function>linkinfo</function>ã<function>readlink</function> ãåç §ãã ããã </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/linkinfo.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/linkinfo.xml diff -u phpdoc-ja/reference/filesystem/functions/linkinfo.xml:1.5 phpdoc-ja/reference/filesystem/functions/linkinfo.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/linkinfo.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/linkinfo.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.linkinfo"> <refnamediv> <refname>linkinfo</refname> @@ -13,14 +15,31 @@ <methodparam><type>string</type><parameter>path</parameter></methodparam> </methodsynopsis> <para> - <function>linkinfo</function>ã¯ãlstatã·ã¹ãã ã³ã¼ã«ã§è¿ããã - UNIX Cè¨èªã®statæ§é ä½ã®st_devãã£ã¼ã«ããè¿ãã¾ãããã®é¢æ°ã¯ã + <function>linkinfo</function>ã¯ã<literal>lstat</literal> + ã·ã¹ãã ã³ã¼ã«ã§è¿ããã + UNIX Cè¨èªã®statæ§é ä½ã® <literal>st_dev</literal> + ãã£ã¼ã«ããè¿ãã¾ãããã®é¢æ°ã¯ã (<parameter>path</parameter>ãæãã¦ãã)ãªã³ã¯ãå®éã«åå¨ - ãããã©ãããã(stat.hã§å®ç¾©ããã¦ããS_ISLNKãã¯ãã¨åã - æ¹æ³ã§)ãã§ãã¯ããããã«ä½¿ããã¾ãã0ãè¿ããã¨ã©ã¼ã®å ´åã« + ãããã©ãããã(<filename>stat.h</filename> ã§å®ç¾©ããã¦ãã S_ISLNK + ãã¯ãã¨åãæ¹æ³ã§)ãã§ãã¯ããããã«ä½¿ããã¾ãã0ãè¿ããã¨ã©ã¼ã®å ´åã« &false;ãè¿ãã¾ãã </para> <para> + <example> + <title><function>linkinfo</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo linkinfo('/vmlinuz'); // 835 + +?> +]]> + </programlisting> + </example> + </para> + ¬e.no-windows; + <para> <function>symlink</function>, <function>link</function>, <function>readlink</function>ãåç §ãã ããã </para> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/mkdir.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-ja/reference/filesystem/functions/mkdir.xml diff -u phpdoc-ja/reference/filesystem/functions/mkdir.xml:1.8 phpdoc-ja/reference/filesystem/functions/mkdir.xml:1.9 --- phpdoc-ja/reference/filesystem/functions/mkdir.xml:1.8 Fri Apr 29 09:04:28 2005 +++ phpdoc-ja/reference/filesystem/functions/mkdir.xml Sat Jul 23 04:37:24 2005 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.17 Maintainer: hirokawa Status: partial --> -<!-- CREDITS: elf --> +<!-- EN-Revision: 1.17 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: elf, shimooka --> <refentry id="function.mkdir"> <refnamediv> <refname>mkdir</refname> @@ -51,9 +51,10 @@ </para> <note> <simpara> - As of PHP 5.0.0 <function>mkdir</function> can also be - used with <emphasis>some</emphasis> URL wrappers. Refer to <xref linkend="wrappers"/> - for a listing of which wrappers support <function>mkdir</function>. + PHP 5.0.0 以éã<function>mkdir</function> 㯠+ <emphasis>ããã¤ãã®</emphasis> URL ã©ããã¼ãä½µç¨ãããã¨ãå¯è½ã§ãã + <function>mkdir</function> ããµãã¼ããã¦ããã©ããã¼ã®ä¸è¦§ã«ã¤ãã¦ã¯ã + <xref linkend="wrappers"/> ãåç §ãã ããã </simpara> </note> ¬e.context-support; http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/move-uploaded-file.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-ja/reference/filesystem/functions/move-uploaded-file.xml diff -u phpdoc-ja/reference/filesystem/functions/move-uploaded-file.xml:1.6 phpdoc-ja/reference/filesystem/functions/move-uploaded-file.xml:1.7 --- phpdoc-ja/reference/filesystem/functions/move-uploaded-file.xml:1.6 Fri Apr 29 09:04:28 2005 +++ phpdoc-ja/reference/filesystem/functions/move-uploaded-file.xml Sat Jul 23 04:37:24 2005 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.20 --> -<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: partical --> -<!-- CREDITS: elf --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: partical --> +<!-- CREDITS: elf, shimooka --> <refentry id="function.move-uploaded-file"> <refnamediv> <refname>move_uploaded_file</refname> @@ -40,14 +41,16 @@ </para> <note> <para> - <function>move_uploaded_file</function> is both &safemode; - and <link linkend="ini.open-basedir">open_basedir</link> - aware. However, restrictions are placed only on the - <parameter>destination</parameter> path as to allow the moving - of uploaded files in which <parameter>filename</parameter> may conflict - with such restrictions. <function>move_uploaded_file</function> ensures - the safety of this operation by allowing only those files uploaded - through PHP to be moved. + <function>move_uploaded_file</function> 㯠&safemode; 㨠+ <link linkend="ini.open-basedir">open_basedir</link> + ã®ä¸¡è ãèæ ®ãã¦ãã¾ãã + ããããªãããã¢ãããã¼ãããããã¡ã¤ã«ãç§»åãã + <parameter>destination</parameter> ãã¹ã®ã¿å¶éãè¨ãããã¾ãã + ããã§ã¯ <parameter>filename</parameter> + ããããã®å¶éã«æµè§¦ããå¯è½æ§ãããããã§ãã + <function>move_uploaded_file</function> 㯠PHP + ãéãã¦ã¢ãããã¼ãããããã¡ã¤ã«ã®ã¿ãç§»åã§ããããã«ãããã¨ã§ + ãã®æä½ã®å®å ¨æ§ãä¿è¨¼ãã¦ãã¾ãã </para> </note> <warning> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/readfile.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/readfile.xml diff -u phpdoc-ja/reference/filesystem/functions/readfile.xml:1.5 phpdoc-ja/reference/filesystem/functions/readfile.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/readfile.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/readfile.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.readfile"> <refnamediv> <refname>readfile</refname> @@ -29,10 +31,11 @@ ã®ãã¡ã¤ã«ã®æ¤ç´¢ãè¡ããã¨ãã§ãã¾ãã </para> <para> - <function>fpassthru</function>, <function>file</function>, - <function>fopen</function>, <function>include</function>, - <function>require</function>, <function>virtual</function>, - <xref linkend="wrappers"/> + <function>fpassthru</function>, + <function>file</function>, <function>fopen</function>, + <function>include</function>, <function>require</function>, + <function>virtual</function>, <function>file_get_contents</function>, + and <xref linkend="wrappers"/> ãåç §ãã ããã </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/readlink.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/filesystem/functions/readlink.xml diff -u phpdoc-ja/reference/filesystem/functions/readlink.xml:1.4 phpdoc-ja/reference/filesystem/functions/readlink.xml:1.5 --- phpdoc-ja/reference/filesystem/functions/readlink.xml:1.4 Mon Nov 22 23:45:33 2004 +++ phpdoc-ja/reference/filesystem/functions/readlink.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.readlink"> <refnamediv> <refname>readlink</refname> @@ -17,9 +19,25 @@ ã·ã³ããªãã¯ãªã³ã¯ã»ãã¹ã®å 容ãè¿ãã¾ããã¨ã©ã¼ã®å ´å0ã è¿ãã¾ãã </para> + <para> + <example> + <title><function>readlink</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +// åºåä¾ /boot/vmlinux-2.4.20-xfs +echo readlink('/vmlinuz'); + +?> +]]> + </programlisting> + </example> + </para> + ¬e.no-windows; <para> <function>is_link</function>, - <function>symlink</function>, + <function>symlink</function>, <function>linkinfo</function>ãåç §ãã¦ãã ããã </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/rename.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/rename.xml diff -u phpdoc-ja/reference/filesystem/functions/rename.xml:1.5 phpdoc-ja/reference/filesystem/functions/rename.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/rename.xml:1.5 Mon Nov 22 23:45:34 2004 +++ phpdoc-ja/reference/filesystem/functions/rename.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.11 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.rename"> <refnamediv> <refname>rename</refname> @@ -9,9 +11,10 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>int</type><methodname>rename</methodname> + <type>bool</type><methodname>rename</methodname> <methodparam><type>string</type><parameter>oldname</parameter></methodparam> <methodparam><type>string</type><parameter>newname</parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam> </methodsynopsis> <para> <parameter>oldname</parameter>ã @@ -38,9 +41,25 @@ ãã¼ãã¼ã·ã§ã³è¶ãã«ãã¡ã¤ã«åã夿´ãããã¨ã¯ã§ãã¾ããã </para> </note> + <note> + <simpara> + PHP 5.0.0 以éã<function>rename</function> 㯠+ <emphasis>ããã¤ãã®</emphasis> URL ã©ããã¼ãä½µç¨ãããã¨ãå¯è½ã§ãã + <function>rename</function> ããµãã¼ããã¦ããã©ããã¼ã®ä¸è¦§ã«ã¤ãã¦ã¯ã + <xref linkend="wrappers"/> ãåç §ãã ããã + </simpara> + </note> + <note> + <simpara> + <parameter>oldname</parameter> ã§ä½¿ç¨ãããã©ããã¼ã¯ã + <parameter>newname</parameter> ã§ä½¿ç¨ããã©ããã¼ã¨é©å + <emphasis>ãã¦ããå¿ è¦ãããã¾ã</emphasis> ã + </simpara> + </note> + ¬e.context-support; <para> - <function>copy</function>, - <function>unlink</function>, + <function>copy</function>, + <function>unlink</function>, <function>move_uploaded_file</function>ãåç §ãã¦ãã ããã </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/rewind.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/rewind.xml diff -u phpdoc-ja/reference/filesystem/functions/rewind.xml:1.5 phpdoc-ja/reference/filesystem/functions/rewind.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/rewind.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/rewind.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.rewind"> <refnamediv> <refname>rewind</refname> @@ -23,11 +25,11 @@ ãã¡ã¤ã«ãã¤ã³ã¿ã¯æå¹ãªãã®ã§ãªããã°ãªãããã¾ã <function>fopen</function>ã§æ£å¸¸ã«ãªã¼ãã³ããããã¡ã¤ã«ã æãã¦ããå¿ è¦ãããã¾ãã - </para> + </para> <note> <para> - 追è¨("a")ã¢ã¼ãã§ãã¡ã¤ã«ããªã¼ãã³ããå ´åããã¡ã¤ã«ä½ç½®ã«ãã - ããã¡ã¤ã«ã«æ¸ãè¾¼ã¾ãããã¼ã¿ã¯å¸¸ã«è¿½å ããã¾ãã + è¿½è¨ ("a" ããã㯠"a+") ã¢ã¼ãã§ãã¡ã¤ã«ããªã¼ãã³ããå ´åã + ãã¡ã¤ã«ä½ç½®ã«ããããã¡ã¤ã«ã«æ¸ãè¾¼ã¾ãããã¼ã¿ã¯å¸¸ã«è¿½å ããã¾ãã </para> </note> <para> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/rmdir.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/rmdir.xml diff -u phpdoc-ja/reference/filesystem/functions/rmdir.xml:1.5 phpdoc-ja/reference/filesystem/functions/rmdir.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/rmdir.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/rmdir.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.rmdir"> <refnamediv> <refname>rmdir</refname> @@ -18,6 +20,16 @@ é©åãªãã¼ããã·ã§ã³ãè¨å®ããã¦ããªããã°ãªãã¾ããã &return.success; </para> + <note> + <simpara> + PHP 5.0.0 以éã<function>rmdir</function> 㯠+ <emphasis>ããã¤ãã®</emphasis> URL ã©ããã¼ãä½µç¨ãããã¨ãå¯è½ã§ãã + <function>rmdir</function> ããµãã¼ããã¦ããã©ããã¼ã®ä¸è¦§ã«ã¤ãã¦ã¯ã + <xref linkend="wrappers"/> ãåç §ãã ããã + </simpara> + </note> + ¬e.context-support; + ¬e.sm.uidcheck.dir; <para> <function>mkdir</function>,<function>unlink</function>ãåç §ãã ããã </para> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/stat.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/stat.xml diff -u phpdoc-ja/reference/filesystem/functions/stat.xml:1.5 phpdoc-ja/reference/filesystem/functions/stat.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/stat.xml:1.5 Fri Apr 29 09:04:28 2005 +++ phpdoc-ja/reference/filesystem/functions/stat.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.12 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.stat"> <refnamediv> <refname>stat</refname> @@ -96,7 +98,7 @@ <row> <entry>10</entry> <entry>ctime</entry> - <entry>æçµå¤æ´æé (Unix ã¿ã¤ã ã¹ã¿ã³ã)</entry> + <entry>æçµ inode 夿´æé (Unix ã¿ã¤ã ã¹ã¿ã³ã)</entry> </row> <row> <entry>11</entry> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/symlink.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/symlink.xml diff -u phpdoc-ja/reference/filesystem/functions/symlink.xml:1.5 phpdoc-ja/reference/filesystem/functions/symlink.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/symlink.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/symlink.xml Sat Jul 23 04:37:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.symlink"> <refnamediv> <refname>symlink</refname> @@ -21,6 +23,7 @@ <para> &return.success; </para> + ¬e.no-windows; <para> ãã¼ããªã³ã¯ãä½ãã«ã¯<function>link</function>ããã㦠<function>readlink</function>ã¨<function>linkinfo</function> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/tempnam.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-ja/reference/filesystem/functions/tempnam.xml diff -u phpdoc-ja/reference/filesystem/functions/tempnam.xml:1.6 phpdoc-ja/reference/filesystem/functions/tempnam.xml:1.7 --- phpdoc-ja/reference/filesystem/functions/tempnam.xml:1.6 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/tempnam.xml Sat Jul 23 04:37:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.17 --> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.tempnam"> <refnamediv> <refname>tempnam</refname> @@ -28,6 +30,13 @@ ã¿ã使ç¨ãã¾ããçåãããå ´åã¯ãtempnam(3)ã«é¢ããã·ã¹ãã ãã㥠ã¡ã³ããåç §ãã ããã </para> + <note> + <simpara> + PHP ãæå®ããããã©ã¡ã¼ã¿ <parameter>dir</parameter> + ã«ãã¡ã¤ã«ãçæãããã¨ãã§ããªãå ´åãã·ã¹ãã æ¨æºã®ãã©ã¼ã«ããã¯ã + å®è¡ããã¾ãã + </simpara> + </note> <para> æ°ãããã³ãã©ãªãã¡ã¤ã«åãè¿ãã失æããå ´åã«ã¯&false;ãè¿ãã¾ ãã @@ -35,15 +44,17 @@ <title><function>tempnam</function>ã®ä¾</title> <programlisting role="php"> <![CDATA[ -$tmpfname = tempnam ("/tmp", "FOO"); +<?php +$tmpfname = tempnam("/tmp", "FOO"); -$fp = fopen($tmpfname, "w"); -fwrite($fp, "writing to tempfile"); -fclose($fp); +$handle = fopen($tmpfname, "w"); +fwrite($handle, "writing to tempfile"); +fclose($handle); // ããã§ä½ãè¡ã unlink($tmpfname); +?> ]]> </programlisting> </example> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/umask.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/umask.xml diff -u phpdoc-ja/reference/filesystem/functions/umask.xml:1.5 phpdoc-ja/reference/filesystem/functions/umask.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/umask.xml:1.5 Tue Apr 26 13:51:57 2005 +++ phpdoc-ja/reference/filesystem/functions/umask.xml Sat Jul 23 04:37:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.umask"> <refnamediv> <refname>umask</refname> @@ -23,6 +25,34 @@ <function>umask</function>ã弿°ç¡ãã§å®è¡ããã¨ãåã«ç¾å¨ã® umaskå¤ãè¿ãã¾ãã </para> + <note> + <para> + ãã«ãã¹ã¬ãã㪠Web ãµã¼ãã§ãã®é¢æ°ã使ç¨ãããã¨ã¯é¿ãã¦ãã ããã + ãã¡ã¤ã«ãçæå¾ã<function>chmod</function> ã使ç¨ãã¦ãã¡ã¤ã«æ¨©éã + 夿´ããã®ãããè¯ãæ¹æ³ã§ããå ¨ã¦åã umask ã使ç¨ãããã®ã§ã + <function>umask</function> ã®ä½¿ç¨ã¯ãã¹ã¯ãªãããåæã«å®è¡ããå ´åã + Web ãµã¼ãèªèº«ã®äºæããªãåä½ãå¼ãèµ·ããåå ã«ãªãå¯è½æ§ãããã¾ãã + </para> + </note> + <para> + <example> + <title><function>umask</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +$old = umask(0); +chmod("/path/some_dir/some_file.txt", 0755); +umask($old); + +// ãã§ã㯠+if ($old != umask()) { + die('An error occured while changing back the umask'); +} +?> +]]> + </programlisting> + </example> + </para> </refsect1> </refentry>
http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/glob.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/filesystem/functions/glob.xml diff -u phpdoc-ja/reference/filesystem/functions/glob.xml:1.4 phpdoc-ja/reference/filesystem/functions/glob.xml:1.5 --- phpdoc-ja/reference/filesystem/functions/glob.xml:1.4 Mon Nov 22 23:45:33 2004 +++ phpdoc-ja/reference/filesystem/functions/glob.xml Sat Jul 23 04:37:24 2005 @@ -1,8 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.19 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.glob"> <refnamediv> - <refname>glob</refname> + <refname>glob</refname> <refpurpose>ãã¿ã¼ã³ã«ããããããã¹åãæ¢ã</refpurpose> </refnamediv> <refsect1> @@ -13,8 +15,10 @@ <methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam> </methodsynopsis> <para> - <function>glob</function>ã¯ã·ã§ã«ã§ä½¿ãããã«ã¼ã«ã«åºã¥ã㦠- <parameter>pattern</parameter>ã«ãããããå ¨ã¦ã®ãã¹åãæ¤ç´¢ãã¾ãã + <function>glob</function> 颿°ã¯ glibc ã® glob() + 颿°ã§ä½¿ãããã«ã¼ã«ã«åºã¥ã㦠+ <parameter>pattern</parameter> ã«ãããããå ¨ã¦ã®ãã¹åãæ¤ç´¢ãã¾ãã + ã«ã¼ã«ã¯ãä¸è¬ã®ã·ã§ã«ã§ä½¿ãããã«ã¼ã«ã¨ä¼¼ã¦ãã¾ãã ãã«ãã®å±éããã©ã¡ã¼ã¿ç½®æã¯è¡ããã¾ããã </para> <para> @@ -48,27 +52,40 @@ </listitem> <listitem> <simpara> - <constant>GLOB_BRACE</constant> - Expands {a,b,c} ã 'a', 'b', - or 'c' + <constant>GLOB_BRACE</constant> - Expands {a,b,c} ã 'a', 'b', + or 'c' </simpara> </listitem> <listitem> <simpara> <constant>GLOB_ONLYDIR</constant> - ãã¿ã¼ã³ã«ããããããã£ã¬ã¯ããªã®ã¿ãè¿ãã¾ã </simpara> + <note> + <simpara> + PHP 4.3.3 以åã§ã¯ã<constant>GLOB_ONLYDIR</constant> 㯠+ Windows ã GNU C ã©ã¤ãã©ãªã使ç¨ããªãä»ã®ã·ã¹ãã ã§ã¯å©ç¨ + <emphasis role="strong">ã§ãã¾ããã§ãã</emphasis> ã + </simpara> + </note> + </listitem> + <listitem> + <simpara> + <constant>GLOB_ERR</constant> - (ãã£ã¬ã¯ããªãèªããªããªã©ã®) + èªã¿è¾¼ã¿ã¨ã©ã¼æã«åæ¢ãã¾ããããã©ã«ãã§ã¯ã¨ã©ã¼ã¯ç¡è¦ããã¾ãã + </simpara> + <note> + <simpara> + <constant>GLOB_ERR</constant> 㯠PHP 5.1 ã§è¿½å ããã¾ããã + </simpara> + </note> </listitem> </itemizedlist> </para> - <note> - <simpara> - <constant>GLOB_ONLYDIR</constant> ã¯Windowsã§ã¯ä½¿ç¨ã§ãã¾ããã - </simpara> - </note> <para> <example> <title> - Convenient way how <function>glob</function> can replace - <function>opendir</function> and friends. + <function>glob</function> ã <function>opendir</function> + ã¨é¢é£ãã颿°ç¾¤ã®ä»£æ¿çã«ãªããã示ãç°¡ä¾¿ãªæ¹æ³ </title> <programlisting role="php"> <![CDATA[ @@ -76,26 +93,29 @@ foreach (glob("*.txt") as $filename) { echo "$filename size " . filesize($filename) . "\n"; } - -/* Output will look something like: - +?> +]]> + </programlisting> + <para> + åºåã¯æ¬¡ã®éãã§ã: + </para> + <screen> +<![CDATA[ funclist.txt size 44686 funcsummary.txt size 267625 quickref.txt size 137820 - -*/ -?> ]]> - </programlisting> + </screen> </example> </para> - + ¬e.no-remote; - + <para> <function>opendir</function>, <function>readdir</function>, - <function>closedir</function>, <function>fnmatch</function>ãåç §ãã¦ãã ããã + <function>closedir</function>, <function>fnmatch</function> + ãåç §ãã¦ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/is-readable.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/is-readable.xml diff -u phpdoc-ja/reference/filesystem/functions/is-readable.xml:1.5 phpdoc-ja/reference/filesystem/functions/is-readable.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/is-readable.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/is-readable.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.is-readable"> <refnamediv> <refname>is_readable</refname> @@ -21,14 +23,31 @@ ã¤ã«ã«ã¢ã¯ã»ã¹ãããã¨ãè¦ãã¦ããã¦ãã ãããã»ã¼ãã¢ã¼ãã®å¶é㯠åãã¾ããã </para> + <para> + <example> + <title><function>is_writable</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$filename = 'test.txt'; +if (is_readable($filename)) { + echo 'The file is readable'; +} else { + echo 'The file is not readable'; +} +?> +]]> + </programlisting> + </example> + </para> ¬e.clearstatcache; - ¬e.no-remote; + &tip.fopen-wrapper.stat; <para> - <function>is_writable</function>, - <function>file_exists</function>, + <function>is_writable</function>, + <function>file_exists</function>, <function>fgets</function>ãåç §ãã¦ãã ããã </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/is-uploaded-file.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/is-uploaded-file.xml diff -u phpdoc-ja/reference/filesystem/functions/is-uploaded-file.xml:1.5 phpdoc-ja/reference/filesystem/functions/is-uploaded-file.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/is-uploaded-file.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/is-uploaded-file.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.20 --> -<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.is-uploaded-file"> <refnamediv> <refname>is_uploaded_file</refname> @@ -27,6 +29,30 @@ æ´ãããå¯è½æ§ããããããç¹ã«éè¦ã§ãã </para> <para> + é©åã«åä½ãããããã颿° <function>is_uploaded_file</function> + 㯠$_FILES['userfile']['tmp_name'] ã®ãããªå¼æ°ãå¿ è¦ã¨ãã¾ãã + ã¢ãããã¼ãããããã¡ã¤ã«ã®ã¯ã©ã¤ã¢ã³ããã·ã³ä¸ã§ã®åå + $_FILES['userfile']['name'] ã§ã¯åä½ãã¾ããã + </para> + <example> + <title><function>is_uploaded_file</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +if (is_uploaded_file($_FILES['userfile']['tmp_name'])) { + echo "File ". $_FILES['userfile']['name'] ." uploaded successfully.\n"; + echo "Displaying contents\n"; + readfile($_FILES['userfile']['tmp_name']); +} else { + echo "Possible file upload attack: "; + echo "filename '". $_FILES['userfile']['tmp_name'] . "'."; +} + +?>]]> + </programlisting> + </example> + <para> <function>is_uploaded_file</function>ã¯ã PHP 3.0.16 ããå¾ã®ãã¼ã¸ã§ã³ã® PHP 3 ããã³ 4.0.2 以 éã®ãã¼ã¸ã§ã³ã® PHP 4 ã§ã®ã¿å©ç¨å¯è½ã§ãã @@ -38,21 +64,26 @@ ããã¯ãã®ãã¼ã¸ã§ã³ä»¥éã§PHPã®å é¨å¦çã夿´ãããããã§ãã </para> </note> + </para> + <example> + <title>PHP 4 < 4.0.3 ã«ããã <function>is_uploaded_file</function> + ã®ä¾</title> <programlisting role="php"> <![CDATA[ <?php -/* Userland test for uploaded file. */ -function is_uploaded_file($filename) { +/* ã¢ãããã¼ãããããã¡ã¤ã«ã®ãã¹ã */ +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... */ + /* ã¦ã¼ã¶ã¼ã¯ 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: */ +/* 以ä¸ã¯ãã®é¢æ°ã®ä½¿ç¨æ¹æ³ããããå¤ããã¼ã¸ã§ã³ã«ã¯ + * move_uploaded_file() ããªãã */ if (is_uploaded_file($HTTP_POST_FILES['userfile'])) { copy($HTTP_POST_FILES['userfile'], "/place/to/put/uploaded/file"); } else { @@ -61,7 +92,7 @@ ?> ]]> </programlisting> - </para> + </example> <para> ç°¡åãªä½¿ç¨ä¾ã«é¢ãã¦ã¯ã<function>move_uploaded_file</function>ã ãã³<link linkend="features.file-upload">ãã¡ã¤ã«ã¢ãããã¼ãã®å¦ http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/is-writable.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/is-writable.xml diff -u phpdoc-ja/reference/filesystem/functions/is-writable.xml:1.5 phpdoc-ja/reference/filesystem/functions/is-writable.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/is-writable.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/is-writable.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.27 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.is-writable"> <refnamediv> <refname>is_writable</refname> @@ -22,14 +24,31 @@ ã§ãã¡ã¤ã«ã«ã¢ã¯ã»ã¹ãããã¨ãè¦ãã¦ããã¦ãã ããã ã»ã¼ãã¢ã¼ãã®å¶éã¯åãã¾ããã </para> + <para> + <example> + <title><function>is_writable</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$filename = 'test.txt'; +if (is_writable($filename)) { + echo 'The file is writable'; +} else { + echo 'The file is not writable'; +} +?> +]]> + </programlisting> + </example> + </para> - ¬e.clearstatcache; - - ¬e.no-remote; + ¬e.clearstatcache; + + &tip.fopen-wrapper.stat; <para> <function>is_readable</function>, - <function>file_exists</function>, + <function>file_exists</function>, <function>fwrite</function>ãåç §ãã ããã </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/link.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/link.xml diff -u phpdoc-ja/reference/filesystem/functions/link.xml:1.5 phpdoc-ja/reference/filesystem/functions/link.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/link.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/link.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.link"> <refnamediv> <refname>link</refname> @@ -15,11 +17,15 @@ </methodsynopsis> <para> <function>link</function>ã¯ãã¼ããªã³ã¯ã使ãã¾ãã + &return.success; </para> + ¬e.no-remote; + ¬e.no-windows; + <para> ã·ã³ããªãã¯ãªã³ã¯ã使ãã<function>symlink</function>ã - <function>linkinfo</function>ã<function>readlink</function> + <function>linkinfo</function>ã<function>readlink</function> ãåç §ãã ããã </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/linkinfo.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/linkinfo.xml diff -u phpdoc-ja/reference/filesystem/functions/linkinfo.xml:1.5 phpdoc-ja/reference/filesystem/functions/linkinfo.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/linkinfo.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/linkinfo.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.linkinfo"> <refnamediv> <refname>linkinfo</refname> @@ -13,14 +15,31 @@ <methodparam><type>string</type><parameter>path</parameter></methodparam> </methodsynopsis> <para> - <function>linkinfo</function>ã¯ãlstatã·ã¹ãã ã³ã¼ã«ã§è¿ããã - UNIX Cè¨èªã®statæ§é ä½ã®st_devãã£ã¼ã«ããè¿ãã¾ãããã®é¢æ°ã¯ã + <function>linkinfo</function>ã¯ã<literal>lstat</literal> + ã·ã¹ãã ã³ã¼ã«ã§è¿ããã + UNIX Cè¨èªã®statæ§é ä½ã® <literal>st_dev</literal> + ãã£ã¼ã«ããè¿ãã¾ãããã®é¢æ°ã¯ã (<parameter>path</parameter>ãæãã¦ãã)ãªã³ã¯ãå®éã«åå¨ - ãããã©ãããã(stat.hã§å®ç¾©ããã¦ããS_ISLNKãã¯ãã¨åã - æ¹æ³ã§)ãã§ãã¯ããããã«ä½¿ããã¾ãã0ãè¿ããã¨ã©ã¼ã®å ´åã« + ãããã©ãããã(<filename>stat.h</filename> ã§å®ç¾©ããã¦ãã S_ISLNK + ãã¯ãã¨åãæ¹æ³ã§)ãã§ãã¯ããããã«ä½¿ããã¾ãã0ãè¿ããã¨ã©ã¼ã®å ´åã« &false;ãè¿ãã¾ãã </para> <para> + <example> + <title><function>linkinfo</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo linkinfo('/vmlinuz'); // 835 + +?> +]]> + </programlisting> + </example> + </para> + ¬e.no-windows; + <para> <function>symlink</function>, <function>link</function>, <function>readlink</function>ãåç §ãã ããã </para> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/mkdir.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-ja/reference/filesystem/functions/mkdir.xml diff -u phpdoc-ja/reference/filesystem/functions/mkdir.xml:1.8 phpdoc-ja/reference/filesystem/functions/mkdir.xml:1.9 --- phpdoc-ja/reference/filesystem/functions/mkdir.xml:1.8 Fri Apr 29 09:04:28 2005 +++ phpdoc-ja/reference/filesystem/functions/mkdir.xml Sat Jul 23 04:37:24 2005 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.17 Maintainer: hirokawa Status: partial --> -<!-- CREDITS: elf --> +<!-- EN-Revision: 1.17 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: elf, shimooka --> <refentry id="function.mkdir"> <refnamediv> <refname>mkdir</refname> @@ -51,9 +51,10 @@ </para> <note> <simpara> - As of PHP 5.0.0 <function>mkdir</function> can also be - used with <emphasis>some</emphasis> URL wrappers. Refer to <xref linkend="wrappers"/> - for a listing of which wrappers support <function>mkdir</function>. + PHP 5.0.0 以éã<function>mkdir</function> 㯠+ <emphasis>ããã¤ãã®</emphasis> URL ã©ããã¼ãä½µç¨ãããã¨ãå¯è½ã§ãã + <function>mkdir</function> ããµãã¼ããã¦ããã©ããã¼ã®ä¸è¦§ã«ã¤ãã¦ã¯ã + <xref linkend="wrappers"/> ãåç §ãã ããã </simpara> </note> ¬e.context-support; http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/move-uploaded-file.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-ja/reference/filesystem/functions/move-uploaded-file.xml diff -u phpdoc-ja/reference/filesystem/functions/move-uploaded-file.xml:1.6 phpdoc-ja/reference/filesystem/functions/move-uploaded-file.xml:1.7 --- phpdoc-ja/reference/filesystem/functions/move-uploaded-file.xml:1.6 Fri Apr 29 09:04:28 2005 +++ phpdoc-ja/reference/filesystem/functions/move-uploaded-file.xml Sat Jul 23 04:37:24 2005 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.20 --> -<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: partical --> -<!-- CREDITS: elf --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: partical --> +<!-- CREDITS: elf, shimooka --> <refentry id="function.move-uploaded-file"> <refnamediv> <refname>move_uploaded_file</refname> @@ -40,14 +41,16 @@ </para> <note> <para> - <function>move_uploaded_file</function> is both &safemode; - and <link linkend="ini.open-basedir">open_basedir</link> - aware. However, restrictions are placed only on the - <parameter>destination</parameter> path as to allow the moving - of uploaded files in which <parameter>filename</parameter> may conflict - with such restrictions. <function>move_uploaded_file</function> ensures - the safety of this operation by allowing only those files uploaded - through PHP to be moved. + <function>move_uploaded_file</function> 㯠&safemode; 㨠+ <link linkend="ini.open-basedir">open_basedir</link> + ã®ä¸¡è ãèæ ®ãã¦ãã¾ãã + ããããªãããã¢ãããã¼ãããããã¡ã¤ã«ãç§»åãã + <parameter>destination</parameter> ãã¹ã®ã¿å¶éãè¨ãããã¾ãã + ããã§ã¯ <parameter>filename</parameter> + ããããã®å¶éã«æµè§¦ããå¯è½æ§ãããããã§ãã + <function>move_uploaded_file</function> 㯠PHP + ãéãã¦ã¢ãããã¼ãããããã¡ã¤ã«ã®ã¿ãç§»åã§ããããã«ãããã¨ã§ + ãã®æä½ã®å®å ¨æ§ãä¿è¨¼ãã¦ãã¾ãã </para> </note> <warning> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/readfile.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/readfile.xml diff -u phpdoc-ja/reference/filesystem/functions/readfile.xml:1.5 phpdoc-ja/reference/filesystem/functions/readfile.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/readfile.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/readfile.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.readfile"> <refnamediv> <refname>readfile</refname> @@ -29,10 +31,11 @@ ã®ãã¡ã¤ã«ã®æ¤ç´¢ãè¡ããã¨ãã§ãã¾ãã </para> <para> - <function>fpassthru</function>, <function>file</function>, - <function>fopen</function>, <function>include</function>, - <function>require</function>, <function>virtual</function>, - <xref linkend="wrappers"/> + <function>fpassthru</function>, + <function>file</function>, <function>fopen</function>, + <function>include</function>, <function>require</function>, + <function>virtual</function>, <function>file_get_contents</function>, + and <xref linkend="wrappers"/> ãåç §ãã ããã </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/readlink.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/filesystem/functions/readlink.xml diff -u phpdoc-ja/reference/filesystem/functions/readlink.xml:1.4 phpdoc-ja/reference/filesystem/functions/readlink.xml:1.5 --- phpdoc-ja/reference/filesystem/functions/readlink.xml:1.4 Mon Nov 22 23:45:33 2004 +++ phpdoc-ja/reference/filesystem/functions/readlink.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.readlink"> <refnamediv> <refname>readlink</refname> @@ -17,9 +19,25 @@ ã·ã³ããªãã¯ãªã³ã¯ã»ãã¹ã®å 容ãè¿ãã¾ããã¨ã©ã¼ã®å ´å0ã è¿ãã¾ãã </para> + <para> + <example> + <title><function>readlink</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + +// åºåä¾ /boot/vmlinux-2.4.20-xfs +echo readlink('/vmlinuz'); + +?> +]]> + </programlisting> + </example> + </para> + ¬e.no-windows; <para> <function>is_link</function>, - <function>symlink</function>, + <function>symlink</function>, <function>linkinfo</function>ãåç §ãã¦ãã ããã </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/rename.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/rename.xml diff -u phpdoc-ja/reference/filesystem/functions/rename.xml:1.5 phpdoc-ja/reference/filesystem/functions/rename.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/rename.xml:1.5 Mon Nov 22 23:45:34 2004 +++ phpdoc-ja/reference/filesystem/functions/rename.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.11 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.rename"> <refnamediv> <refname>rename</refname> @@ -9,9 +11,10 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>int</type><methodname>rename</methodname> + <type>bool</type><methodname>rename</methodname> <methodparam><type>string</type><parameter>oldname</parameter></methodparam> <methodparam><type>string</type><parameter>newname</parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam> </methodsynopsis> <para> <parameter>oldname</parameter>ã @@ -38,9 +41,25 @@ ãã¼ãã¼ã·ã§ã³è¶ãã«ãã¡ã¤ã«åã夿´ãããã¨ã¯ã§ãã¾ããã </para> </note> + <note> + <simpara> + PHP 5.0.0 以éã<function>rename</function> 㯠+ <emphasis>ããã¤ãã®</emphasis> URL ã©ããã¼ãä½µç¨ãããã¨ãå¯è½ã§ãã + <function>rename</function> ããµãã¼ããã¦ããã©ããã¼ã®ä¸è¦§ã«ã¤ãã¦ã¯ã + <xref linkend="wrappers"/> ãåç §ãã ããã + </simpara> + </note> + <note> + <simpara> + <parameter>oldname</parameter> ã§ä½¿ç¨ãããã©ããã¼ã¯ã + <parameter>newname</parameter> ã§ä½¿ç¨ããã©ããã¼ã¨é©å + <emphasis>ãã¦ããå¿ è¦ãããã¾ã</emphasis> ã + </simpara> + </note> + ¬e.context-support; <para> - <function>copy</function>, - <function>unlink</function>, + <function>copy</function>, + <function>unlink</function>, <function>move_uploaded_file</function>ãåç §ãã¦ãã ããã </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/rewind.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/rewind.xml diff -u phpdoc-ja/reference/filesystem/functions/rewind.xml:1.5 phpdoc-ja/reference/filesystem/functions/rewind.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/rewind.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/rewind.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.rewind"> <refnamediv> <refname>rewind</refname> @@ -23,11 +25,11 @@ ãã¡ã¤ã«ãã¤ã³ã¿ã¯æå¹ãªãã®ã§ãªããã°ãªãããã¾ã <function>fopen</function>ã§æ£å¸¸ã«ãªã¼ãã³ããããã¡ã¤ã«ã æãã¦ããå¿ è¦ãããã¾ãã - </para> + </para> <note> <para> - 追è¨("a")ã¢ã¼ãã§ãã¡ã¤ã«ããªã¼ãã³ããå ´åããã¡ã¤ã«ä½ç½®ã«ãã - ããã¡ã¤ã«ã«æ¸ãè¾¼ã¾ãããã¼ã¿ã¯å¸¸ã«è¿½å ããã¾ãã + è¿½è¨ ("a" ããã㯠"a+") ã¢ã¼ãã§ãã¡ã¤ã«ããªã¼ãã³ããå ´åã + ãã¡ã¤ã«ä½ç½®ã«ããããã¡ã¤ã«ã«æ¸ãè¾¼ã¾ãããã¼ã¿ã¯å¸¸ã«è¿½å ããã¾ãã </para> </note> <para> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/rmdir.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/rmdir.xml diff -u phpdoc-ja/reference/filesystem/functions/rmdir.xml:1.5 phpdoc-ja/reference/filesystem/functions/rmdir.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/rmdir.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/rmdir.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.rmdir"> <refnamediv> <refname>rmdir</refname> @@ -18,6 +20,16 @@ é©åãªãã¼ããã·ã§ã³ãè¨å®ããã¦ããªããã°ãªãã¾ããã &return.success; </para> + <note> + <simpara> + PHP 5.0.0 以éã<function>rmdir</function> 㯠+ <emphasis>ããã¤ãã®</emphasis> URL ã©ããã¼ãä½µç¨ãããã¨ãå¯è½ã§ãã + <function>rmdir</function> ããµãã¼ããã¦ããã©ããã¼ã®ä¸è¦§ã«ã¤ãã¦ã¯ã + <xref linkend="wrappers"/> ãåç §ãã ããã + </simpara> + </note> + ¬e.context-support; + ¬e.sm.uidcheck.dir; <para> <function>mkdir</function>,<function>unlink</function>ãåç §ãã ããã </para> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/stat.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/stat.xml diff -u phpdoc-ja/reference/filesystem/functions/stat.xml:1.5 phpdoc-ja/reference/filesystem/functions/stat.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/stat.xml:1.5 Fri Apr 29 09:04:28 2005 +++ phpdoc-ja/reference/filesystem/functions/stat.xml Sat Jul 23 04:37:24 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.12 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.stat"> <refnamediv> <refname>stat</refname> @@ -96,7 +98,7 @@ <row> <entry>10</entry> <entry>ctime</entry> - <entry>æçµå¤æ´æé (Unix ã¿ã¤ã ã¹ã¿ã³ã)</entry> + <entry>æçµ inode 夿´æé (Unix ã¿ã¤ã ã¹ã¿ã³ã)</entry> </row> <row> <entry>11</entry> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/symlink.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/symlink.xml diff -u phpdoc-ja/reference/filesystem/functions/symlink.xml:1.5 phpdoc-ja/reference/filesystem/functions/symlink.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/symlink.xml:1.5 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/symlink.xml Sat Jul 23 04:37:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.symlink"> <refnamediv> <refname>symlink</refname> @@ -21,6 +23,7 @@ <para> &return.success; </para> + ¬e.no-windows; <para> ãã¼ããªã³ã¯ãä½ãã«ã¯<function>link</function>ããã㦠<function>readlink</function>ã¨<function>linkinfo</function> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/tempnam.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-ja/reference/filesystem/functions/tempnam.xml diff -u phpdoc-ja/reference/filesystem/functions/tempnam.xml:1.6 phpdoc-ja/reference/filesystem/functions/tempnam.xml:1.7 --- phpdoc-ja/reference/filesystem/functions/tempnam.xml:1.6 Sun Jan 2 02:23:32 2005 +++ phpdoc-ja/reference/filesystem/functions/tempnam.xml Sat Jul 23 04:37:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.17 --> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.tempnam"> <refnamediv> <refname>tempnam</refname> @@ -28,6 +30,13 @@ ã¿ã使ç¨ãã¾ããçåãããå ´åã¯ãtempnam(3)ã«é¢ããã·ã¹ãã ãã㥠ã¡ã³ããåç §ãã ããã </para> + <note> + <simpara> + PHP ãæå®ããããã©ã¡ã¼ã¿ <parameter>dir</parameter> + ã«ãã¡ã¤ã«ãçæãããã¨ãã§ããªãå ´åãã·ã¹ãã æ¨æºã®ãã©ã¼ã«ããã¯ã + å®è¡ããã¾ãã + </simpara> + </note> <para> æ°ãããã³ãã©ãªãã¡ã¤ã«åãè¿ãã失æããå ´åã«ã¯&false;ãè¿ãã¾ ãã @@ -35,15 +44,17 @@ <title><function>tempnam</function>ã®ä¾</title> <programlisting role="php"> <![CDATA[ -$tmpfname = tempnam ("/tmp", "FOO"); +<?php +$tmpfname = tempnam("/tmp", "FOO"); -$fp = fopen($tmpfname, "w"); -fwrite($fp, "writing to tempfile"); -fclose($fp); +$handle = fopen($tmpfname, "w"); +fwrite($handle, "writing to tempfile"); +fclose($handle); // ããã§ä½ãè¡ã unlink($tmpfname); +?> ]]> </programlisting> </example> http://cvs.php.net/diff.php/phpdoc-ja/reference/filesystem/functions/umask.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/filesystem/functions/umask.xml diff -u phpdoc-ja/reference/filesystem/functions/umask.xml:1.5 phpdoc-ja/reference/filesystem/functions/umask.xml:1.6 --- phpdoc-ja/reference/filesystem/functions/umask.xml:1.5 Tue Apr 26 13:51:57 2005 +++ phpdoc-ja/reference/filesystem/functions/umask.xml Sat Jul 23 04:37:25 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: shimooka --> <refentry id="function.umask"> <refnamediv> <refname>umask</refname> @@ -23,6 +25,34 @@ <function>umask</function>ã弿°ç¡ãã§å®è¡ããã¨ãåã«ç¾å¨ã® umaskå¤ãè¿ãã¾ãã </para> + <note> + <para> + ãã«ãã¹ã¬ãã㪠Web ãµã¼ãã§ãã®é¢æ°ã使ç¨ãããã¨ã¯é¿ãã¦ãã ããã + ãã¡ã¤ã«ãçæå¾ã<function>chmod</function> ã使ç¨ãã¦ãã¡ã¤ã«æ¨©éã + 夿´ããã®ãããè¯ãæ¹æ³ã§ããå ¨ã¦åã umask ã使ç¨ãããã®ã§ã + <function>umask</function> ã®ä½¿ç¨ã¯ãã¹ã¯ãªãããåæã«å®è¡ããå ´åã + Web ãµã¼ãèªèº«ã®äºæããªãåä½ãå¼ãèµ·ããåå ã«ãªãå¯è½æ§ãããã¾ãã + </para> + </note> + <para> + <example> + <title><function>umask</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php +$old = umask(0); +chmod("/path/some_dir/some_file.txt", 0755); +umask($old); + +// ãã§ã㯠+if ($old != umask()) { + die('An error occured while changing back the umask'); +} +?> +]]> + </programlisting> + </example> + </para> </refsect1> </refentry>