cvs: phpdoc /kr/functions filesystem.xml
| From: | Gwangjong Lee | Date: | Tue, 30 Jan 2001 06:56:04 +0000 |
| Subject: | cvs: phpdoc /kr/functions filesystem.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969334054@lists.php.net to get a copy of this message | ||
vizvil Mon Jan 29 22:56:04 2001 EDT
Modified files:
/phpdoc/kr/functions filesystem.xml
Log:
no message
Index: phpdoc/kr/functions/filesystem.xml diff -u phpdoc/kr/functions/filesystem.xml:1.2 phpdoc/kr/functions/filesystem.xml:1.3 --- phpdoc/kr/functions/filesystem.xml:1.2 Fri Jan 12 06:16:39 2001 +++ phpdoc/kr/functions/filesystem.xml Mon Jan 29 22:56:04 2001 @@ -1,191 +1,175 @@ - <reference id="ref.filesystem"> - <title>Filesystem functions</title> - <titleabbrev>Filesystem</titleabbrev> - - <refentry id="function.basename"> - <refnamediv> - <refname>basename</refname> - <refpurpose> - Returns filename component of path +<reference id="ref.filesystem"> + <title>Filesystem functions</title> + <titleabbrev>Filesystem</titleabbrev> + <refentry id="function.basename"> + <refnamediv> + <refname>basename</refname> + <refpurpose> + ê²½ë¡ëª ìì íì¼ì´ë¦ë§ ë°íí©ëë¤ </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>basename</function></funcdef> - <paramdef>string <parameter>path</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Given a string containing a path to a file, this function will - return the base name of the file. - </para> - <para> - On Windows, both slash (<literal>/</literal>) and backslash - (<literal>\</literal>) are used as path separator character. In - other environments, it is the forward slash - (<literal>/</literal>). - </para> - <para> - <example> - <title><function>basename</function> example</title> - <programlisting role="php"> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>basename</function> + </funcdef> + <paramdef>string <parameter>path</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + ì´ í¨ìë ê²½ë¡ê° í¬í¨ë íì¼ì´ë¦ì´ 주ì´ì¡ìë íì¼ì ì´ë¦ë¶ë¶ë§ ë°íí©ëë¤ + </para> + <para> + ìëì°ì¦ììë ì¬ëì¬ì (<literal>/</literal>) ë°±ì¬ëì¬(<literal>\</literal>) 모ë ê²½ë¡êµ¬ë¶ìë¡ ì¬ì©ë©ëë¤. ê·¸ ì¸ì íê²½ììë ì¬ëì¬(<literal>/</literal>)ë§ ì¬ì©ë©ëë¤ + . + </para> + <para> + <example> + <title> + <function>basename</function> ì문</title> + <programlisting role="php"> $path = "/home/httpd/html/index.php3"; -$file = basename ($path); // $file is set to "index.php3" +$file = basename ($path); // $file ì "index.php3" ë¡ ì¤ì ë©ëë¤. </programlisting> - </example> - </para> - <para> - See also: <function>dirname</function> - </para> - </refsect1> - </refentry> - - <refentry id="function.chgrp"> - <refnamediv> - <refname>chgrp</refname> - <refpurpose>Changes file group</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>chgrp</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>mixed <parameter>group</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Attempts to change the group of the file - <parameter>filename</parameter> to - <parameter>group</parameter>. Only the superuser may change the - group of a file arbitrarily; other users may change the group of - a file to any group of which that user is a member. - </para> - <para> - Returns true on success; otherwise returns false. - </para> - <para> - See also <function>chown</function> and - <function>chmod</function>. - </para> - <note> - <simpara> - This function does not work on Windows systems + </example> + </para> + <para> + 참조: <function>dirname</function> + </para> + </refsect1> + </refentry> + <refentry id="function.chgrp"> + <refnamediv> + <refname>chgrp</refname> + <refpurpose>íì¼ì 그룹ì ë³íí©ëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>chgrp</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>mixed <parameter>group</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +íì¼ì 그룹ì <parameter>filename</parameter>ìì <parameter>group</parameter>ì¼ë¡ ë°ê¾¸ê³ ì í ë ìí¼ì ì ë§ì´ íì¼ì 그룹ì ìì¼ë¡ ë³ê²½í ì ìê³ ê·¸ ì¸ì ì¬ì©ìë¤ì 멤ë²ë¡ ììëë§ ì´ë¤ íì¼ì 그룹ì ë³ê²½í ì ììµëë¤. + </para> + <para> +ì±ê³µíë©´ true, ì¤í¨íë©´ false를 ë°íí©ëë¤. + </para> + <para> + 참조: <function>chown</function> ê·¸ë¦¬ê³ <function>chmod</function>. + </para> + <note> + <simpara> +ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.chmod"> - <refnamediv> - <refname>chmod</refname> - <refpurpose>Changes file mode</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>chmod</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>int <parameter>mode</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Attempts to change the mode of the file specified by - <parameter>filename</parameter> to that given in - <parameter>mode</parameter>. - </para> - <para> - Note that <parameter>mode</parameter> is not automatically - assumed to be an octal value, so strings (such as "g+w") will - not work properly. To ensure the expected operation, - you need to prefix <parameter>mode</parameter> with a zero (0): - <informalexample> - <programlisting role="php"> -chmod ("/somedir/somefile", 755); // decimal; probably incorrect -chmod ("/somedir/somefile", "u+rwx,go+rx"); // string; incorrect -chmod ("/somedir/somefile", 0755); // octal; correct value of mode + </note> + </refsect1> + </refentry> + <refentry id="function.chmod"> + <refnamediv> + <refname>chmod</refname> + <refpurpose>íì¼ì 모ë ë³ê²½</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>chmod</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>int <parameter>mode</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <parameter>filename</parameter>ì ì ìë íì¼ì 모ë를 주ì´ì§ <parameter>mode</parameter>ë¡ ë³ê²½íê³ ì í ë ì¬ì©í©ëë¤. + </para> + <para> +주ìí ì ì <parameter>mode</parameter>ê° ìëì¼ë¡ 8ì§ìë¡ ë°ëì§ ìëë¤ë ê²ì ëë¤. ê·¸ëì ë§ì½ì 문ìì´("g+w")를 ì¬ì©íë¤ë©´ ì ííê² ëìíì§ ìì ì ììµëë¤. ê·¸ëì íì¤í ëìíë 구문ì ì¬ì©íë ¤ë©´ 0ì ì´ì©í´ì <parameter>mode</parameter>ì íí를 미리 ì ìí´ ì£¼ì´ì¼ í©ëë¤: + <informalexample> + <programlisting role="php"> +chmod ("/somedir/somefile", 755); // 10ì§ì : ì ííê² ëìíì§ ìì ê²ì +chmod ("/somedir/somefile", "u+rwx,go+rx"); // 문ìì´ : ì못ë 구문 +chmod ("/somedir/somefile", 0755); // 8ì§ì : ì íí 모ë ê° </programlisting> - </informalexample> - </para> - <para> - Returns true on success and false otherwise. - </para> - <para> - See also <function>chown</function> and - <function>chgrp</function>. - </para> - <note> - <simpara> - This function does not work on Windows systems + </informalexample> + </para> + <para> +ì±ê³µíë©´ true, ì¤í¨íë©´ false를 ë°íí©ëë¤. </para> + <para> + 참조: <function>chown</function> ê·¸ë¦¬ê³ <function>chgrp</function>. + </para> + <note> + <simpara> +ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.chown"> - <refnamediv> - <refname>chown</refname> - <refpurpose>Changes file owner</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>chown</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>mixed <parameter>user</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Attempts to change the owner of the file filename to user - user. Only the superuser may change the owner of a file. - </para> - <para> - Returns true on success; otherwise returns false. - </para> - <para> - See also <function>chown</function> and - <function>chmod</function>. - </para> - <note> - <simpara> - This function does not work on Windows systems + </note> + </refsect1> + </refentry> + <refentry id="function.chown"> + <refnamediv> + <refname>chown</refname> + <refpurpose>íì¼ì ìì ì ë³ê²½</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>chown</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>mixed <parameter>user</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + ì´ë¤ íì¼ì ìì ì를 ë³ê²½íê³ ì í ë ìí¼ì ì ë§ì´ íì¼ì ìì ì를 ë°ê¿ ì ììµëë¤. + </para> + <para> + ì±ê³µíë©´ true, ê·¸ë ì§ ìì¼ë©´ false를 ë°íí©ëë¤. + </para> + <para> + 참조: <function>chown</function> ê·¸ë¦¬ê³ <function>chmod</function>. + </para> + <note> + <simpara> +ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.clearstatcache"> - <refnamediv> - <refname>clearstatcache</refname> - <refpurpose>Clears file stat cache</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>clearstatcache</function></funcdef> - <void/> - </funcprototype> - </funcsynopsis> - <para> - Invoking the <systemitem>stat</systemitem> or - <systemitem>lstat</systemitem> system call on most systems is - quite expensive. Therefore, the result of the last call to any of - the status functions (listed below) is stored for use on the next - such call using the same filename. If you wish to force a new - status check, for instance if the file is being checked many - times and may change or disappear, use this function to clear the - results of the last call from memory. + </note> + </refsect1> + </refentry> + <refentry id="function.clearstatcache"> + <refnamediv> + <refname>clearstatcache</refname> + <refpurpose>íì¼ì íµê³(stat) ìºì를 ìì í©ëë¤.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>clearstatcache</function> + </funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para> +ëë¶ë¶ì ì´ìì²´ì ìì<systemitem>stat</systemitem>ë<systemitem>lstat</systemitem>ë±ì ìì¤í í¸ì¶ì ì¬ì©í´ì ì¼ìíë ê²ì 꽤 ììì ë§ì´ ì모í©ëë¤. ê·¸ë 기 ë문ì ìµì¢ ì ì¼ë¡ ì¬ì©ë ìí를 ëíë´ë í¨ì(ìëì ëì´ë)ì ê²°ê³¼ë ë¤ìë²ì ê°ì íì¼ì´ë¦ì ì¬ì©íì¬ ê·¸ë° í¸ì¶ì í ê²½ì°ë¥¼ ìíì¬ ì ì¥ì´ ë©ëë¤. ë§ì½ì íì¼ì´ ì¬ë¬ë² ì²´í¬ê° ëìê³ íì¼ì´ ë°ëê±°ë íì¼ì´ ìì´ì¡ì ê²½ì°ë±ì ìí를 ê°ì ë¡ ë¤ì ì²´í¬íê³ ì íë¤ë©´ ì´ í¨ì를 ì¬ì©íì¬ ì ì¥ëì´ìë ìµì¢ 결과를 ë©ëª¨ë¦¬ìì ìì í ì ììµëë¤. </para> - <para> - This value is only cached for the lifetime of a single request. + <para> +ì´ ê°ì ì´ë¤ ë¨ì¼ ìì²(request)ì´ ì í¨í ëê¹ì§ë§ ìºìë ê°ì ëë¤. </para> - <para> - Affected functions include <function>stat</function>, + <para> + <function>stat</function>ì í¬í¨íì¬ <function>lstat</function>, <function>file_exists</function>, <function>is_writable</function>, @@ -201,301 +185,277 @@ <function>filegroup</function>, <function>fileowner</function>, <function>filesize</function>, - <function>filetype</function>, and - <function>fileperms</function>. + <function>filetype</function> ê·¸ë¦¬ê³ + <function>fileperms</function>ì´ ì´ í¨ìì ìí¥ì ë°ê² ëë í¨ìì ëë¤. </para> - </refsect1> - </refentry> - - <refentry id="function.copy"> - <refnamediv> - <refname>copy</refname> - <refpurpose>Copies file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>copy</function></funcdef> - <paramdef>string <parameter>source</parameter></paramdef> - <paramdef>string <parameter>dest</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Makes a copy of a file. Returns true if the copy succeeded, - false otherwise. + </refsect1> + </refentry> + <refentry id="function.copy"> + <refnamediv> + <refname>copy</refname> + <refpurpose>íì¼ì ë³µì¬í©ëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Descriptionì¤ëª </title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>copy</function> + </funcdef> + <paramdef>string <parameter>source</parameter> + </paramdef> + <paramdef>string <parameter>dest</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +íì¼ì ë³µì¬ë³¸ì ë§ëëë¤. ë³µì¬ê° ëë©´ true, ê·¸ë ì§ ìì¼ë©´ false를 ë°íí©ëë¤. <example> - <title><function>Copy</function> example</title> - <programlisting role="php"> + <title> + <function>Copy</function>ì문</title> + <programlisting role="php"> if (!copy($file, $file.'.bak')) { - print ("failed to copy $file...<br>\n"); + print ("$fileì ë³µì¬íëë° ì¤í¨íìµëë¤...<br>\n"); } </programlisting> - </example> - </para> - <para> - See also: <function>rename</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.delete"> - <refnamediv> - <refname>delete</refname> - <refpurpose>A dummy manual entry</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>delete</function></funcdef> - <paramdef>string <parameter>file</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - This is a dummy manual entry to satisfy those people who are - looking for <function>unlink</function> or - <function>unset</function> in the wrong place. - </para> - <para> - See also: <function>unlink</function> to delete files, - <function>unset</function> to delete variables. - </para> - </refsect1> - </refentry> - - <refentry id="function.dirname"> - <refnamediv> - <refname>dirname</refname> - <refpurpose>Returns directory name component of path</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>dirname</function></funcdef> - <paramdef>string <parameter>path</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Given a string containing a path to a file, this function will - return the name of the directory.</para> - <para> - On Windows, both slash (<literal>/</literal>) and backslash - (<literal>\</literal>) are used as path separator character. In - other environments, it is the forward slash - (<literal>/</literal>).</para> - <para> - <example> - <title><function>Dirname</function> example</title> - <programlisting role="php"> + </example> + </para> + <para> + 참조: <function>rename</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.delete"> + <refnamediv> + <refname>delete</refname> + <refpurpose>ì¤ì ë¡ë ìë ëª ë ¹</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>delete</function> + </funcdef> + <paramdef>string <parameter>file</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +ì´ê²ì <function>unlink</function>ë <function>unset</function>ì í¨ì를 ì못ë ì¥ììì ì¬ëë¤ì´ ì°¾ìê¹ë´ 목ë¡ì ë¼ìë£ì ê²ì ëë¤. + </para> + <para> + 참조: <function>unlink</function>ë íì¼ì ìì íê³ ì í ë, + <function>unset</function>ë ë³ì를 ìì íê³ ì í ë. + </para> + </refsect1> + </refentry> + <refentry id="function.dirname"> + <refnamediv> + <refname>dirname</refname> + <refpurpose>ê²½ë¡ì 구ì±ììì¤ìì ëë í 리 ì´ë¦ë§ ë°íí©ëë¤.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>dirname</function> + </funcdef> + <paramdef>string <parameter>path</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +ì´ í¨ìë ì´ë¤ íì¼ì ì§ì íë ê²½ë¡ê° 주ì´ì¡ìë ëë í 리ì ì´ë¦ì ë°íí©ëë¤</para> + <para> +ìëì°ì¦ììë ì¬ëì(<literal>/</literal>) ì ìì¬ëì (<literal>\</literal>) 모ë ê²½ë¡ëª ì 구ë¶íë 구ë¶ìë¡ ì¬ì©ëì§ë§ 기íì ì´ìì²´ì ììë ì¬ëì(<literal>/</literal>)ë§ ì¬ì©ë©ëë¤. + </para> + <para> + <example> + <title> + <function>Dirname</function> ì문</title> + <programlisting role="php"> $path = "/etc/passwd"; -$file = dirname ($path); // $file is set to "/etc" +$file = dirname ($path); // $file ì "/etc" ë¡ ì¤ì ë©ëë¤. </programlisting> - </example> - </para> - <para> - See also: <function>basename</function> - </para> - </refsect1> - </refentry> - - <refentry id="function.diskfreespace"> - <refnamediv> - <refname>diskfreespace</refname> - <refpurpose>Returns available space in directory</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>float <function>diskfreespace</function></funcdef> - <paramdef>string <parameter>directory</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Given a string containing a directory, this function will return - the number of bytes available on the corresponding filesystem or - disk partition. - </para> - <para> - <example> - <title><function>diskfreespace</function> example</title> - <programlisting role="php"> -$df = diskfreespace("/"); // $df contains the number of bytes - // available on "/" + </example> + </para> + <para> + 참조: <function>basename</function> + </para> + </refsect1> + </refentry> + <refentry id="function.diskfreespace"> + <refnamediv> + <refname>diskfreespace</refname> + <refpurpose>ëë í 리ì ì¬ì©ê°ë¥í ê³µê°ì ë°íí©ëë¤.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>float <function>diskfreespace</function> + </funcdef> + <paramdef>string <parameter>directory</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +ì´ í¨ìë ëë í 리를 í¬í¨í 문ìì´ì´ 주ì´ì¡ìë íì¼ìì¤í ì´ë ëì¤í¬íí°ì ì ì¬ì©ê°ë¥í ê³µê°ì ë°ì´í¸ë¡ ë°íí©ëë¤. + </para> + <para> + <example> + <title> + <function>diskfreespace</function>ì문</title> + <programlisting role="php"> +$df = diskfreespace("/"); // $df ë "/"ìì ì¬ì©ê°ë¥í ê³µê°ì ë°ì´í¸ í¬ê¸°ë¥¼ ë³´ì¬ì¤ëë¤. </programlisting> - </example> - </para> - </refsect1> - </refentry> - - <refentry id="function.fclose"> - <refnamediv> - <refname>fclose</refname> - <refpurpose>Closes an open file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fclose</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - The file pointed to by fp is closed. - </para> - <para> - Returns true on success and false on failure. - </para> - <para> - The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function> or - <function>fsockopen</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.feof"> - <refnamediv> - <refname>feof</refname> - <refpurpose>Tests for end-of-file on a file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>feof</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns true if the file pointer is at EOF or an error occurs; - otherwise returns false. - </para> - <para> - The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function>, - <function>popen</function>, or <function>fsockopen</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.fflush"> - <refnamediv> - <refname>fflush</refname> - <refpurpose>Flushes the output to a file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fflush</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - This function forces a write of all buffered output to the - to the resource pointed to by the file handle - <parameter>fp</parameter>. Returns true if succesful, false - otherwise. - </para> - <para> - The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function>, - <function>popen</function>, or <function>fsockopen</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.fgetc"> - <refnamediv> - <refname>fgetc</refname> - <refpurpose>Gets character from file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>fgetc</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns a string containing a single character read from the - file pointed to by fp. Returns FALSE on EOF. - </para> - <para> - The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function>, - <function>popen</function>, or <function>fsockopen</function>. - </para> - <para> - See also <function>fread</function>, <function>fopen</function>, - <function>popen</function>, <function>fsockopen</function>, and - <function>fgets</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.fgetcsv"> - <refnamediv> - <refname>fgetcsv</refname> - <refpurpose> - Gets line from file pointer and parse for CSV fields + </example> + </para> + </refsect1> + </refentry> + <refentry id="function.fclose"> + <refnamediv> + <refname>fclose</refname> + <refpurpose>ì´ë ¤ìë íì¼ í¬ì¸í°ë¥¼ ë«ìµëë¤.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fclose</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + ì´ íì¼ì fpê° ë«íë ì§ì ë©ëë¤. + </para> + <para> + ì±ê³µíë©´ true, ì¤í¨íë©´ false를 ë°íí©ëë¤. + </para> + <para> +íì¼í¬ì¸í°ë ë°ëì ì í¨í ê²ì´ì´ì¼ íê³ ,<function>fopen</function> ì´ë <function>fsockopen</function>ë±ììí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì ì§ì í´ì¼ í©ëë¤. + </para> + </refsect1> + </refentry> + <refentry id="function.feof"> + <refnamediv> + <refname>feof</refname> + <refpurpose>íì¼ì ëì´ íì¼í¬ì¸í°ì ìëì§ í ì¤í¸í©ëë¤.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>feof</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +íì¼ í¬ì¸í°ê° íì¼ì ëì ìê±°ë ìë¬ê° ë°ìíë©´ true, ê·¸ë ì§ ìì¼ë©´ false를 ë°íí©ëë¤. + </para> + <para/>íì¼í¬ì¸í°ë ë°ëì ì í¨í ê²ì´ì´ì¼íê³ ,<function>fopen</function> ì´ë <function>popen</function> ëë <function>fsockopen</function>ì ìí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì ì§ì í´ì¼ í©ëë¤. + </refsect1> + </refentry> + <refentry id="function.fflush"> + <refnamediv> + <refname>fflush</refname> + <refpurpose>ì¶ë ¥ê²°ê³¼ë¥¼ íì¼ë¡ ë³´ë ëë¤.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fflush</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + ì´ í¨ìë모ë ë²í¼ì ì ì¥ëì´ìë ì¶ë ¥ì íì¼í¸ë¤ì ìí´ ì§ì ë ììì ê°ì ë¡ ì°ê¸°í©ëë¤. + <parameter>fp</parameter>. +ì±ê³µíë©´ true, ì¤í¨íë©´ false를 ë°í. + </para> + <para/>ì´ íì¼í¬ì¸í°ë ë°ëì ì í¨í ê²ì´ì´ì¼ íê³ ,<function>fopen</function>ì´ë <function>popen</function>ëë <function>fsockopen</function>ì ìí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì ê°ë¦¬ì¼ì¼ í©ëë¤. + </refsect1> + </refentry> + <refentry id="function.fgetc"> + <refnamediv> + <refname>fgetc</refname> + <refpurpose>íì¼í¬ì¸í°ë¡ë¶í° 문ì ê°ì ¸ì¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>fgetc</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +fpì ìí´ ê°ë¦¬ì¼ì§ íì¼ë¡ë¶í° íê°ì 문ì를 í¬í¨í 문ìì´ì ë°íí©ëë¤. FALSE ë EOF를 ë°íí©ëë¤. + </para> + <para/>ì´ íì¼í¬ì¸í°ë ë°ëì ì í¨í ê²ì´ì´ì¼ íê³ ,<function>fopen</function>ì´ë <function>popen</function> ëë <function>fsockopen</function>ì ìí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì ê°ë¦¬ì¼ì¼ í©ëë¤. + <para> + 참조: <function>fread</function>, <function>fopen</function>, + <function>popen</function>, <function>fsockopen</function>, ê·¸ë¦¬ê³ <function>fgets</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.fgetcsv"> + <refnamediv> + <refname>fgetcsv</refname> + <refpurpose> + íì¼í¬ì¸í°ìì ë¼ì¸ì ê°ì ¸ì¤ê³ CVS ì ë§ê² ë³íí©ëë¤. </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>fgetcsv</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>length</parameter></paramdef> - <paramdef>string + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>fgetcsv</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>length</parameter> + </paramdef> + <paramdef>string <parameter> - <optional>delimiter</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - Similar to <function>fgets</function> except that - <function>fgetcsv</function> parses the line it reads for fields - in <acronym>CSV</acronym> format and returns an array containing - the fields read. The field delimiter is a comma, unless you - specify another delimiter with the optional third parameter. - </simpara> - <simpara> - <parameter>Fp</parameter> must be a valid file pointer to a file - successfully opened by <function>fopen</function>, - <function>popen</function>, or <function>fsockopen</function> - </simpara> - <simpara> - Length must be greater than the longest line to be found in the - CSV file (allowing for trailing line-end characters). - </simpara> - <simpara> - <function>Fgetcsv</function> returns false on error, including - end of file. - </simpara> - <simpara> - N.B. A blank line in a CSV file will be returned as an array - comprising a single null field, and will not be treated as an - error. - </simpara> - <example> - <title> - <function>Fgetcsv</function> example - Read and print entire - contents of a CSV file + <optional>delimiter</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + <function>fgetcsv</function>ê° <acronym>CSV</acronym>íìì¼ë¡ íë를 ì½ì´ìì ë³ííê³ ì½ì íë를 í¬í¨íë ë°°ì´ë¡ ë°ííë ê²ì ì ì¸íê³ ë <function>fgets</function>ì ë¹ì·í©ëë¤. ì¸ë²ì§¸ 매ê°ë³ìë¡ í¹ì í 구ë¶ë¬¸ì를 ì§ì íì§ ìëë¤ë©´ íëì 구ë¶ë¬¸ìë 콤ë§ê° ë©ëë¤. + </simpara> + <simpara> + <parameter>Fp</parameter>ë <function>fopen</function>,<function>popen</function> ì´ë<function>fsockopen</function>ì ìí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì ëí ì í¨í íì¼ í¬ì¸í°ì¬ì¼ í©ëë¤. + </simpara> + <simpara> + CSV íì¼ìì ê°ì¥ 긴 ë¼ì¸ë³´ë¤ ë 길ì´ì¼ í©ëë¤.(ë§ì§ë§ 문ì ì°¾ê¸°ê° íì©ëìì ë) + </simpara> + <simpara> + <function>Fgetcsv</function>ë íì¼ì ëì´ê±°ë ì¤í¨ì false를 ë°íí©ëë¤. + </simpara> + <simpara> + 주ì-- CSV íì¼ìì ë¹ì´ìë ë¼ì¸ì null íë를 ë°°ì´ë¡ ë§ë¤ì´ì ë°ííê³ ìë¬ë¡ ì²ë¦¬ëì§ ììµëë¤. + </simpara> + <example> + <title> + <function>Fgetcsv</function>ì문 - CSV íì¼ì ì ì²´ ë´ì©ì ì½ê³ í린í¸í기 </title> - <programlisting role="php"> + <programlisting role="php"> $row = 1; $fp = fopen ("test.csv","r"); while ($data = fgetcsv ($fp, 1000, ",")) { $num = count ($data); - print "<p> $num fields in line $row: <br>"; + print "<p> $row ë¼ì¸ì $num ê°ì íë: <br>"; $row++; for ($c=0; $c<$num; $c++) { print $data[$c] . "<br>"; @@ -503,51 +463,45 @@ } fclose ($fp); </programlisting> - </example> - </refsect1> - </refentry> - - <refentry id="function.fgets"> - <refnamediv> - <refname>fgets</refname> - <refpurpose>Gets line from file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>fgets</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>length</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns a string of up to length - 1 bytes read from the file - pointed to by fp. Reading ends when length - 1 bytes have been - read, on a newline (which is included in the return value), or on - EOF (whichever comes first). - </para> - <para> - If an error occurs, returns false. - </para> - <para> - Common Pitfalls: - </para> - <simpara> - People used to the 'C' semantics of fgets should note the - difference in how EOF is returned. - </simpara> - <simpara> - The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function>, - <function>popen</function>, or - <function>fsockopen</function>. - </simpara> - <para> - A simple example follows: - <example> - <title>Reading a file line by line</title> - <programlisting role="php"> + </example> + </refsect1> + </refentry> + <refentry id="function.fgets"> + <refnamediv> + <refname>fgets</refname> + <refpurpose>íì¼ í¬ì¸í°ìì ë¼ì¸ ê°ì ¸ì¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>fgets</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>length</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + 리í´ê°ì í¬í¨í ìë¡ì´ 문ìì´ì´ê±°ë íì¼ì ëì¤ìì 먼ì ëë¬ëë ê²ìì 1 ë°ì´í¸ë¥¼ ì½ì´ë¤ì¸í lengthë§í¼ ì¦ê°ëë 문ìì´ - fpì ìí´ ê°ë¦¬ì¼ì§ íì¼ë¡ë¶í° 1 ë°ì´í¸ë¥¼ ì½ìµëë¤. lengthì¼ë ëì ì½ìµëë¤. - ì ë°íí©ëë¤. + </para> + <para> + ìë¬ê° ë°ìíë©´ false를 ë°íí©ëë¤. + </para> + <para> + ì¼ë°ì ì¸ í¨ì : + </para> + <simpara> +fgetsì 'C' 구조를 ì주 ì¬ì©íë ì¬ëë¤ì EOF ê° ë°íëë ë°©ë²ì´ ë¤ë¥´ë¤ë ê²ì 주ìí´ì¼ í©ëë¤. + </simpara> + <simpara> + íì¼ í¬ì¸í°ë ì í¨í ê²ì´ì´ì¼ íê³ í¬ì¸í°ê° ê°ë¦¬í¤ë ê²ì ì±ê³µì ì¼ë¡ ì´ë ¤ì§ <function>fopen</function>,<function>popen</function> ëë <function>fsockopen</function>ì ìí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì´ì´ì¼ íë¤. + </simpara> + <para> + ë¨ìí ì문 <example> + <title>íì¼ì í ë¼ì¸ì© ì½ì´ë¤ì´ê¸°</title> + <programlisting role="php"> $fd = fopen ("/tmp/inputfile.txt", "r"); while (!feof ($fd)) { $buffer = fgets($fd, 4096); @@ -555,773 +509,726 @@ } fclose ($fd); </programlisting> - </example> - </para> - <para> - See also <function>fread</function>, <function>fopen</function>, + </example> + </para> + <para> + 참조: <function>fread</function>, <function>fopen</function>, <function>popen</function>, <function>fgetc</function>, - <function>fsockopen</function>, and + <function>fsockopen</function>, ê·¸ë¦¬ê³ <function>socket_set_timeout</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.fgetss"> - <refnamediv> - <refname>fgetss</refname> - <refpurpose> - Gets line from file pointer and strip HTML tags + </refsect1> + </refentry> + <refentry id="function.fgetss"> + <refnamediv> + <refname>fgetss</refname> + <refpurpose> + íì¼í¬ì¸í°ìì ë¼ì¸ì ê°ì ¸ì¤ê³ HTML í그를 ìì 기 </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>fgetss</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>length</parameter></paramdef> - <paramdef>string + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>fgetss</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>length</parameter> + </paramdef> + <paramdef>string <parameter> - <optional>allowable_tags</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <para> - Identical to <function>fgets</function>, except that fgetss - attempts to strip any HTML and PHP tags from the text it - reads. - </para> - <para> - You can use the optional third parameter to specify tags which - should not be stripped. - <note> - <para> - <parameter>allowable_tags</parameter> was added in PHP 3.0.13, - PHP4B3. - </para> - </note> + <optional>allowable_tags</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +fgetssê° ì½ì´ë¤ì¸ í ì¤í¸ìì HTMLê³¼ PHP í그를 ìì ë ê²ì ì ì¸íê³ ë <function>fgets</function>ì ê°ìµëë¤. </para> - <para> - See also <function>fgets</function>, <function>fopen</function>, - <function>fsockopen</function>, <function>popen</function>, and + <para> +ì¸ë²ì§¸ 매ê°ë³ìë¡ ìµì ì ì¬ì©í´ì í¹ì í í그를 ì ì¸ìí¬ ìê° ììµëë¤. + <note> + <para> + <parameter>allowable_tags</parameter>ê° PHP 3.0.13, PHP4B3 ì ì¶ê°ëììµëë¤. + </para> + </note> + </para> + <para> + 참조: <function>fgets</function>, <function>fopen</function>, + <function>fsockopen</function>, <function>popen</function>, ê·¸ë¦¬ê³ <function>strip_tags</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.file"> - <refnamediv> - <refname>file</refname> - <refpurpose>Reads entire file into an array</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>file</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>int - <parameter><optional>use_include_path</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <para> - Identical to <function>readfile</function>, except that - <function>file</function> returns the file in an array. Each - element of the array corresponds to a line in the file, with the - newline still attached. - </para> - <para> - You can use the optional second parameter and set it to "1", if - you want to search for the file in the <link - linkend="ini.include-path">include_path</link>, too. </para> - <para> - <informalexample> - <programlisting role="php"> + </refsect1> + </refentry> + <refentry id="function.file"> + <refnamediv> + <refname>file</refname> + <refpurpose>íì¼ì 체를 ë°°ì´ë¡ ì½ì´ë¤ì</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>file</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>int + <parameter> + <optional>use_include_path</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>file</function>ì´ íì¼ì ë°°ì´ë¡ ë°ííë ê²ì ì ì¸íê³ ë <function>readfile</function>ê³¼ ê°ìµëë¤. ìë¡ì´ ë¼ì¸ì´ ì°ê²°ëë ê²ì í¬í¨í´ì ë°°ì´ì 매 ììë íì¼ì ë¼ì¸ê³¼ ë¹ì·í©ëë¤. + </para> + <para/>íì¼ìì <link linkend="ini.include-path">include_path</link>ìì íì¼ì ì°¾ê³ ì¶ë¤ë©´ ëë²ì§¸ 매ê°ë³ìë¡ "1"ì ì¬ì©íë©´ ë©ëë¤. + <para> + <informalexample> + <programlisting role="php"> <?php -// get a web page into an array and print it out +// ë°°ì´ë¡ ì¹ íì´ì§ë¥¼ ê°ì ¸ì¤ê³ ì¶ë ¥í¨ $fcontents = file ('http://www.php.net'); while (list ($line_num, $line) = each ($fcontents)) { echo "<b>Line $line_num:</b> " . htmlspecialchars ($line) . "<br>\n"; } -// get a web page into a string +//문ìì´ë¡ ì¹ íì´ì§ë¥¼ ê°ì ¸ì´ $fcontents = join ('', file ('http://www.php.net')); ?> </programlisting> - </informalexample> - </para> - <para> - See also <function>readfile</function>, - <function>fopen</function>, <function>fsockopen</function>, and - <function>popen</function>. - </para> - </refsect1> - </refentry> - - - <refentry id="function.file-exists"> - <refnamediv> - <refname>file_exists</refname> - <refpurpose>Checks whether a file exists</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>file_exists</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <simpara> + </informalexample> + </para> + <para> + 참조: <function>readfile</function>, + <function>fopen</function>, <function>fsockopen</function>, ê·¸ë¦¬ê³ <function>popen</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.file-exists"> + <refnamediv> + <refname>file_exists</refname> + <refpurpose>íì¼ì´ ìëì§ ì²´í¬</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>file_exists</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> Returns true if the file specified by - <parameter>filename</parameter> exists; false otherwise. - </simpara> - <simpara> - <function>file_exists</function> will not work on remote files; - the file to be examined must be accessible via the server's - filesystem. - </simpara> - <simpara> - The results of this function are cached. See - <function>clearstatcache</function> for more details. + <parameter>filename</parameter>ì ìí´ ì§ì ë íì¼ì´ ìì¼ë©´ true, ìì¼ë©´ false를 ë°íí©ëë¤. </simpara> - </refsect1> - </refentry> - - - <refentry id="function.fileatime"> - <refnamediv> - <refname>fileatime</refname> - <refpurpose>Gets last access time of file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fileatime</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - Returns the time the file was last accessed, or false in case of - an error. The time is returned as a Unix timestamp. - </simpara> - <simpara> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </simpara> - <simpara> - Note: The atime of a file is supposed to change whenever - the data blocks of a file are being read. This can be - costly performancewise when an appliation regularly - accesses a very large number of files or directories. Some - Unix filesystems can be mounted with atime updates disabled - to increase the performance of such applications; USENET - news spools are a common example. On such filesystems - this function will be useless. - </simpara> - </refsect1> - </refentry> - - <refentry id="function.filectime"> - <refnamediv> - <refname>filectime</refname> - <refpurpose>Gets inode change time of file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>filectime</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the time the file was last changed, or false in case of - an error. The time is returned as a Unix timestamp. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <para>Note: In most Unix filesystem, a file is considered - changed, when it's Inode data is changed, that is, when - the permissions, the owner, the group or other metadata - from the Inode is written to. See also - <function>filemtime</function> (this is what you want to use - when you want to create "Last Modified" footers on web pages) and + <simpara> + <function>file_exists</function>ë ì격 íì¼ìë ëìíì§ ììµëë¤.; +ìë²ì íì¼ìì¤í ì íµí´ íì¼ì ì ê·¼í ê²ì¸ì§ ê²ì¬ë©ëë¤. + </simpara> + <simpara> +ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ë¤ë©´ <function>clearstatcache</function>를 ë³´ììì¤. + </simpara> + </refsect1> + </refentry> + <refentry id="function.fileatime"> + <refnamediv> + <refname>fileatime</refname> + <refpurpose>ìµê·¼ì íì¼ì ì ê·¼í ìê°ì ê°ì ¸ì´</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fileatime</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + íì¼ì ìµì¢ ì ê·¼ ìê°ì ë°ííë©° ìë¬ê° ë°ìí ê²½ì°ìë false를 ë°íí©ëë¤. ë°íëë ìê°ì ì ëì¤íìì ëë¤. + </simpara> + <simpara> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ë¤ë©´ <function>clearstatcache</function>를 ë³´ììì¤. + + </simpara> + <simpara> +주ì: íì¼ì ì ê·¼í ìê°ì íì¼ì ì½ì´ë¤ì¸íì ì ê·¼ì´ ë§íì ëë§ë¤ ë°ëë ê²ì´ ì§ìë©ëë¤.ì´ë ê² íë ê²ì ì 기ì ì¼ë¡ ë§¤ì° ë§ì íì¼ì´ë ëë í 리ì ì´í리ì¼ì´ì ìì ì ê·¼í ë 꽤 ë§ì ììì ì구í©ëë¤.ëªëª ì ëì¤ ìì¤í ììë ê·¸ë° ì´í리ì¼ì´ì ì í¼í¬ë¨¼ì¤ ì¦ê°ë¥¼ ë§ê¸° ìí´ì ì ê·¼ìê° ì ë°ì´í¸ ì¤ì ì 꺼ëê³ ë§ì´í¸ í기ë í©ëë¤. USENET ë´ì¤ ì¤íì´ ì¼ë°ì ì¸ ìì ëë¤. ê·¸ë° íì¼ìì¤í ìë ì´ í¨ìë ë³ë¡ ì¸ëª¨ ììê²ì ëë¤. + </simpara> + </refsect1> + </refentry> + <refentry id="function.filectime"> + <refnamediv> + <refname>filectime</refname> + <refpurpose>íì¼ì ìì´ë ¸ë ë³ê²½ìê°ì ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>filectime</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼ì´ ë§ì§ë§ì¼ë¡ ë³ê²½ë ìê°ì ë°íí©ëë¤. ìë¬ê° ë°ìíë©´ false를 ë°íí©ëë¤. ë°íëë ìê°ì ì ëì¤ íìì ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºì¬ê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì <function>clearstatcache</function>를 참조íì¸ì. + </para> + <para>주ì: ëë¶ë¶ì ì ëì¤ íì¼ìì¤í ììë ìì´ë ¸ëì ë°ì´í(ê¶í, ìì ì, 그룹ì´ë ë¤ë¥¸ ìì)ê° ë³ê²½ëìì ë íì¼ì´ ë°ëë ê²ì´ íì©ë©ëë¤. + 참조: <function>filemtime</function> (ì´ê²ì ì¹ íì´ì§ì íë¨ì "ë§ì§ë§ ìì ìê°"ì ë¶ì´ê³ ì¶ì ë ì¬ì©í©ëë¤. ) ê·¸ë¦¬ê³ <function>fileatime</function>. </para> - <para>Note: In some Unix texts the ctime of a file is being - referred to as the creation time of the file. This is wrong. - There is no creation time for Unix files in most Unix - filesystems. + <para>주ì: ëª ëª ì ëì¤ í ì¤í¸ìì íì¼ì ctimeì´ íì¼ì´ ë§ë¤ì´ì§ ìê°ì¼ë¡ ì¬ì©íê³ ì íë ê²½ì°ê° ìëë° ì´ê²ì ì못ë ê²ì ëë¤. ëë¶ë¶ì ì ëì¤ íì¼ìì¤í ìë íì¼ì´ ë§ë¤ì´ì§ ìê°ì´ë¼ë ê²ì´ ììµëë¤. </para> - </refsect1> - </refentry> - - <refentry id="function.filegroup"> - <refnamediv> - <refname>filegroup</refname> - <refpurpose>Gets file group</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>filegroup</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the group ID of the owner of the file, or false in case - of an error. The group ID is returned in numerical format, use - <function>posix_getgrgid</function> to resolve it to a group name. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <note> - <simpara> - This function does not work on Windows systems + </refsect1> + </refentry> + <refentry id="function.filegroup"> + <refnamediv> + <refname>filegroup</refname> + <refpurpose>íì¼ì 그룹ì ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>filegroup</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼ì ìì ìë 그룹ì ID를 ë°íí©ëë¤. ìë¬ê° ë°ìíë©´ false를 ë°íí©ëë¤. 그룹 IDë ì«ìíìì¼ë¡ ë°íì´ ë©ëë¤. 그룹ì ì´ë¦ì¼ë¡ ë°ê¾¸ê¸° ìí´ì <function>posix_getgrgid</function>í¨ìê° ì¬ì©ë©ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì ëë + <function>clearstatcache</function>를 ë³´ììì¤. </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.fileinode"> - <refnamediv> - <refname>fileinode</refname> - <refpurpose>Gets file inode</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fileinode</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the inode number of the file, or false in case of an - error.</para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <note> - <simpara> - This function does not work on Windows systems + </note> + </refsect1> + </refentry> + <refentry id="function.fileinode"> + <refnamediv> + <refname>fileinode</refname> + <refpurpose>íì¼ì ìì´ë ¸ë를 ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fileinode</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼ì ìì´ë ¸ë ì«ì를 ë°ííê±°ë ìë¬ì¼ ê²½ì°ìë false를 ë°íí©ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì ëë + <function>clearstatcache</function>를 ë³´ììì¤. </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤ </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.filemtime"> - <refnamediv> - <refname>filemtime</refname> - <refpurpose>Gets file modification time</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>filemtime</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the time the file was last modified, or false in case of - an error. The time is returned as a Unix timestamp. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <para>Note: This function returns the time when the data - blocks of a file were being written to, that is, the time - when the content of the file was changed. Use - <function>date</function> on the result of this function - to get a printable modification date for use in page footers. - </para> - </refsect1> - </refentry> - - <refentry id="function.fileowner"> - <refnamediv> - <refname>fileowner</refname> - <refpurpose>Gets file owner</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fileowner</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the user ID of the owner of the file, or false in case of - an error. The user ID is returned in numerical format, use - <function>posix_getpwuid</function> to resolve it to a username. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <note> - <simpara> - This function does not work on Windows systems + </note> + </refsect1> + </refentry> + <refentry id="function.filemtime"> + <refnamediv> + <refname>filemtime</refname> + <refpurpose>íì¼ì´ ìì ë ìê°ì ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>filemtime</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼ì´ ë§ì§ë§ì¼ë¡ ìì ì´ ë ìê°ì ë°ííê±°ë ì¤í¨í ê²½ì°ìë false를 ë°íí©ëë¤. ë°íëë ìê°ì ì ëì¤ íìì ëë¤ + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì ëë + <function>clearstatcache</function>를 ë³´ììì¤. </para> + <para>주ì: ì´ í¨ìë íì¼ì ë´ì©ì´ ìì ëë ëì¤ì ì ê·¼ì ë§ì ìê°ì´ 기ë¡ì´ ë©ëë¤. ì´ í¨ìì ì¤íê²°ê³¼ì í¨ê» <function>date</function>를 ì¬ì©íë©´ íì´ì§ì íë¨ì ì¶ë ¥ê°ë¥í ìì ì¼ì를 íìí ì ììµëë¤. + </para> + </refsect1> + </refentry> + <refentry id="function.fileowner"> + <refnamediv> + <refname>fileowner</refname> + <refpurpose>íì¼ì ìì ì를 ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fileowner</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼ ìì ìì ID를 ì«ìíìì¼ë¡ ë°ííê±°ë ì¤í¨í ê²½ì°ìë false를 ë°íí©ëë¤. ID를 ì¬ì©ìì ì´ë¦ì¼ë¡ ë°ê¾¸ê¸° ìí´ì <function>posix_getpwuid</function>를 ì¬ì©í©ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì ëë + <function>clearstatcache</function>를 ë³´ììì¤. + </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.fileperms"> - <refnamediv> - <refname>fileperms</refname> - <refpurpose>Gets file permissions</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fileperms</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the permissions on the file, or false in case of an error. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - </refsect1> - </refentry> - - <refentry id="function.filesize"> - <refnamediv> - <refname>filesize</refname> - <refpurpose>Gets file size</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>filesize</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the size of the file, or false in case of an error. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - </refsect1> - </refentry> - - <refentry id="function.filetype"> - <refnamediv> - <refname>filetype</refname> - <refpurpose>Gets file type</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>filetype</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the type of the file. Possible values are fifo, char, - dir, block, link, file, and unknown.</para> <para> Returns false - if an error occurs. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - </refsect1> - </refentry> - - <refentry id="function.flock"> - <refnamediv> - <refname>flock</refname> - <refpurpose>Portable advisory file locking</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>flock</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>operation</parameter></paramdef> - <paramdef>int + </note> + </refsect1> + </refentry> + <refentry id="function.fileperms"> + <refnamediv> + <refname>fileperms</refname> + <refpurpose>íì¼ì ê¶íì ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fileperms</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para>íì¼ì ê¶íì ë°ííê±°ë ì¤í¨í ê²½ì°ìë false를 ë°íí©ëë¤. + </para> + <para>ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ìëë + <function>clearstatcache</function>를 참조íì¸ì </para> + </refsect1> + </refentry> + <refentry id="function.filesize"> + <refnamediv> + <refname>filesize</refname> + <refpurpose>íì¼ì í¬ê¸°ë¥¼ ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>filesize</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> íì¼ì í¬ê¸°ë false를 ë°íí©ëë¤. + </para> + <para>ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. + ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ìëë + <function>clearstatcache</function>를 참조íì¸ì. + </para> + </refsect1> + </refentry> + <refentry id="function.filetype"> + <refnamediv> + <refname>filetype</refname> + <refpurpose>íì¼ì íìì ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>filetype</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para>ë°íëë íì¼ì íìì fifo, char, + dir, block, link, file, ê·¸ë¦¬ê³ unknown ì ëë¤.</para> + <para>ìë¬ê° ë°ìíë©´ false를 ë°íí©ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. + ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ìëë + <function>clearstatcache</function>를 참조íì¸ì. + </para> + </refsect1> + </refentry> + <refentry id="function.flock"> + <refnamediv> + <refname>flock</refname> + <refpurpose>íì¼ ì ê¹ì ê´í ê°ë¨í ëìë§</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>flock</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>operation</parameter> + </paramdef> + <paramdef>int <parameter> - <optional>wouldblock</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - PHP supports a portable way of locking complete files in an - advisory way (which means all accessing programs have to use the - same way of locking or it will not work). - </simpara> - <simpara> - <function>flock</function> operates on <parameter>fp</parameter> - which must be an open file - pointer. <parameter>operation</parameter> is one of the following - values: - </simpara> - <para> - <itemizedlist> - <listitem> - <simpara> - To acquire a shared lock (reader), set - <parameter>operation</parameter> to LOCK_SH (set to 1 prior to - PHP 4.0.1). + <optional>wouldblock</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara>PHPë íì¼ì ëí ì ê·¼ì ë§ëë° ê°ë¨í ë°©ë²ì ì ê³µí©ëë¤. + ì´ê²ì 모ë ì ê·¼íë íë¡ê·¸ë¨ì´ íì¼ì ì ê·¸ëë° ê°ì ë°©ë²ì ì¬ì©í´ì¼ íë©° + ê·¸ë ì§ ìì¼ë©´ ëìíì§ ììµëë¤. + </simpara> + <simpara> + <function>flock</function>ì <parameter>fp</parameter>ê° ì´ë ¤ì§ + íì¼ì ëí í¬ì¸í°ì¼ë ì´ê²ììì ëìí©ëë¤ + <parameter>operation</parameter>ì ì°ì¶ëë ê°ì¤ì íëì ëë¤: +</simpara> + <para> + <itemizedlist> + <listitem> + <simpara>ê³µëì¼ë¡ ì ê·¼ì ë§ê³ ì í ë(ì½ë ì¬ë) + <parameter>operation</parameter>ì LOCK_SHë¡ ì¤ì í©ëë¤ (PHP 4.0.1 ì´ì ë²ì ì 1ë¡ ì¤ì í©ëë¤). </simpara> - </listitem> - <listitem> - <simpara> - To acquire an exclusive lock (writer), set - <parameter>operation</parameter> to LOCK_EX (set to 2 prior to - PHP 4.0.1). + </listitem> + <listitem> + <simpara> + ë¨ë ì¼ë¡ ì ê·¼ì ë§ë ê²ì´ íìí ë(ì°ë ì¬ë) + <parameter>operation</parameter>ì LOCK_EXë¡ ì¤ì í©ëë¤ (PHP 4.0.1ì´ì ë²ì ì 2ë¡ ì¤ì í©ëë¤). </simpara> - </listitem> - <listitem> - <simpara> - To release a lock (shared or exclusive), set - <parameter>operation</parameter> to LOCK_UN (set to 3 prior to - PHP 4.0.1). + </listitem> + <listitem> + <simpara> + íì¼ì ëí ì ê·¼ì íì´ì¤ë (ê³µë ëë ë¨ë ) + <parameter>operation</parameter>ì LOCK_UNì¼ë¡ ì¤ì í©ëë¤. (PHP 4.0.1ì´ì ë²ì ì 3ì¼ë¡ ì¤ì í©ëë¤). </simpara> - </listitem> - <listitem> - <simpara> - If you don't want <function>flock</function> to block while - locking, add LOCK_NB (4 prior to PHP 4.0.1) to - <parameter>operation</parameter>. + </listitem> + <listitem> + <simpara> + íì¼ì ëí ì ê·¼ì ë§ëë° <function>flock</function>ì ì¬ì©íê³ ì¶ì§ìì¼ë©´ + LOCK_NBì ì¶ê° íì¸ì (PHP 4.0.1 ì´ì ë²ì ¼ììë) + <parameter>operation</parameter>ì 4ë¡ ì¤ì íì¸ì. </simpara> - </listitem> - </itemizedlist> - </para> - <simpara> - <function>Flock</function> allows you to perform a simple + </listitem> + </itemizedlist> + </para> + <simpara> + <function>Flock</function>ì ì¤ì ë¡ ëª¨ë íê²½ìì + ê°ë¨í ì½ê¸°/ì°ê¸° ì를 ìíí ì ìê² ë§ë¤ì´ì¤ëë¤ reader/writer model which can be used on virtually every platform - (including most Unices and even Windows). The optional 3rd - argument is set to true if the lock would block (EWOULDBLOCK + (ëë¶ë¶ì ì ëì¤ì ìëì°ì¦ íê²½ììë). ì ê·¼ì ë§ì ìê° ìë¤ë©´ + ì¸ë²ì§¸ 매ê°ë³ìê° trueë¡ ì¤ì ëì´ ìë ê²ì ëë¤.(EWOULDBLOCK errno condition) </simpara> - <simpara> - <function>Flock</function> returns true on success and false on - error (e.g. when a lock could not be acquired). - </simpara> - <warning> - <para> - On most operation systems <function>flock</function> is implemented - at the process level. When using a multithreaded server API like - ISAPI you cannot rely on <function>flock</function> to protect - files against other PHP scripts running in parallel threads of the - same server instance! + <simpara> + <function>Flock</function>ì ì±ê³µíë©´ true를 ë°ííê³ ì¤í¨íë©´ false를 ë°íí©ëë¤. + (ì를 ë¤ë©´ íì¼ ì ê·¼ì ë§ëê²ì´ ìì²ëì§ ëª»í ë). + </simpara> + <warning> + <para> + <function>flock</function>ì ëë¶ë¶ì ì´ìì²´ì ìì íë¡ì¸ì¤ ë¨ê³ìì ì¤íë©ëë¤ + . ISAPIê°ì ë©í°ì°ë ëë ìë² API를 ì¬ì©íê³ ì í ê²½ì°ì + <function>flock</function>ì´ ê°ì ìë²ì ì¸ì¤í´ì¤ì ë³ë ¬ ì°ë ëë¡ì + ë¤ë¥¸ PHPì¤í¬ë¦½í¸ê° ì§íë ë íì¼ì ë³´í¸í ê²ì 기ëíì§ ë§ììì¤ </para> - </warning> - </refsect1> - </refentry> - - <refentry id="function.fopen"> - <refnamediv> - <refname>fopen</refname> - <refpurpose>Opens file or URL</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fopen</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>string <parameter>mode</parameter></paramdef> - <paramdef>int + </warning> + </refsect1> + </refentry> + <refentry id="function.fopen"> + <refnamediv> + <refname>fopen</refname> + <refpurpose>íì¼ì´ë URLì ì½ëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fopen</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>string <parameter>mode</parameter> + </paramdef> + <paramdef>int <parameter> - <optional>use_include_path</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - If <parameter>filename</parameter> begins with "http://" (not - case sensitive), an HTTP 1.0 connection is opened to the - specified server and a file pointer is returned to the beginning - of the text of the response. A 'Host:' header is sent with the - request in order to handle name-based virtual hosts. - </simpara> - <simpara> - Does not handle HTTP redirects, so you must include trailing - slashes on directories. - </simpara> - <simpara> - If <parameter>filename</parameter> begins with "ftp://" (not case - sensitive), an ftp connection to the specified server is opened - and a pointer to the requested file is returned. If the server - does not support passive mode ftp, this will fail. You can open - files for either reading or writing via ftp (but not both - simultaneously). - </simpara> - <simpara> - If <parameter>filename</parameter> is one of "php://stdin", - "php://stdout", or "php://stderr", the corresponding stdio - stream will be opened. (This was introduced in PHP 3.0.13; - in earlier versions, a filename such as "/dev/stdin" or - "/dev/fd/0" must be used to access the stdio streams.) - </simpara> - <simpara> - If <parameter>filename</parameter> begins with anything else, the - file will be opened from the filesystem, and a file pointer to - the file opened is returned. + <optional>use_include_path</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + ë§ì½<parameter>filename</parameter>ì´ "http://"ë¡ ììíë©´ + (sensitive íì§ ìì ê²½ì°ì), HTTP 1.0 ì°ê²°ì´ ì§ì ë ìë²ë¥¼ ì´ì´ì¤ëë¤.ê·¸ë¦¬ê³ íì¼ í¬ì¸í°ë + ìëµí ì¤í¸ì ììë¶ë¶ì¼ë¡ ëë ¤ì§ëë¤.. A 'í¸ì¤í¸:' í¤ëë¶ë¶ì + name-based virtual hosts를 í¸ë¤ë§í기 ìí´ì ìì²ê³¼ í¨ê» ë³´ë´ì§ëë¤. + </simpara> + <simpara> + HTTP 리ë¤ì´ë í¸ë¥¼ ê±´ëë¦¬ì§ ë§ììì¤. ë°ëì ëë í 리ë¤ì ë°ë¥´ë ì¬ëì¬ë¥¼ í¬í¨ìì¼ì¼ í©ëë¤. + </simpara> + <simpara> + ë§ì½ì <parameter>filename</parameter>ì´ "ftp://"ë¡ ììì´ ëë©´ + (sensitive íì§ ìì ê²½ì°ì), ì§ì ë ìë²ê° ftpì°ê²°ì ìí´ ì´ë ¤ì§ëë¤. + ê·¸ë¦¬ë¡ ìì²ë íì¼ì ëí í¬ì¸í°ê° ë°íë©ëë¤. + ë§ì½ì ìë²ì ftpê° ë°ì ì ìë 모ë를 ì§ìíì§ ìì¼ë©´, ì´ê²ì ì¤íë ì ììµëë¤. + ftp를 íµí´ì íì¼ì ì½ê±°ë ì¸ìë ììµëë¤.ftp (ëìì í ìë ììµëë¤). + </simpara> + <simpara> + ë§ì½ì<parameter>filename</parameter>ì´ "php://stdin", + "php://stdout", "php://stderr",ì¤ì íëë¼ë©´ ì¼ì¹íë + íì¤ì ì¶ë ¥ ì¤í¸ë¦¼ì´ ì´ë¦¬ê² ë©ëë¤ + (PHP 3.0.13ì ìê°ê° ëì´ ììµëë¤; + ì´ì ë²ì ìì íì¤ì ì¶ë ¥ ì¤í¸ë¦¼ì ì ê·¼íë ¤ë©´ + filenameì´ "/dev/stdin" ì´ë "/dev/fd/0" ì´ì´ì¼ í©ëë¤.) + </simpara> + <simpara> + <parameter>filename</parameter>ì´ ë¤ë¥¸ ê²ì¼ë¡ ììëë©´ ê·¸ íì¼ì + íì¼ ìì¤í ìì ì´ë ¤ì§ëë¤. ê·¸ë¦¬ê³ , íì¼ì ëí íì¼ í¬ì¸í°ê° ì´ë ¤ì ë°íë©ëë¤. </simpara> - <simpara> - If the open fails, the function returns false. + <simpara> + ì´ìê° ìë¤ë©´ false를 ë°íí©ëë¤. </simpara> - <para> - <parameter>mode</parameter> may be any of the following: + <para> + <parameter>mode</parameter>ë¤ìì ì´ëê²ì´ë¼ë ë ìê° ììµëë¤: <itemizedlist> - <listitem> - <simpara> - 'r' - Open for reading only; place the file pointer at the - beginning of the file. + <listitem> + <simpara> + 'r' - ì½ê¸°ì ì©ì¼ë¡ ì´ë¦½ëë¤; íì¼í¬ì¸í°ë¥¼ íì¼ì 맨 ìì ëìµëë¤. </simpara> - </listitem> - <listitem> - <simpara> - 'r+' - Open for reading and writing; place the file pointer at - the beginning of the file. + </listitem> + <listitem> + <simpara> + 'r+' - ì½ê¸° ì°ê¸°ê° ê°ë¥í©ëë¤.; íì¼ í¬ì¸í°ë¥¼ íì¼ì 맨 ìì ëìµëë¤. </simpara> - </listitem> - <listitem> - <simpara> - 'w' - Open for writing only; place the file pointer at the - beginning of the file and truncate the file to zero length. - If the file does not exist, attempt to create it. + </listitem> + <listitem> + <simpara> + 'w' - ì°ê¸° ì ì©ì¼ë¡ ì´ë¦½ëë¤; íì¼ í¬ì¸í°ë¥¼ íì¼ì 맨 ìì ëìµëë¤ + ê·¸ë¦¬ê³ íì¼ì í¬ê¸°ë¥¼ 0ì¼ë¡ ë§ëëë¤. íì¼ì´ ìì¼ë©´ ë§ëëë¤. </simpara> - </listitem> - <listitem> - <simpara> - 'w+' - Open for reading and writing; place the file pointer at - the beginning of the file and truncate the file to zero - length. If the file does not exist, attempt to create it. + </listitem> + <listitem> + <simpara> + 'w+' - ì½ê¸° ì°ê¸°ê° ê°ë¥í©ëë¤; íì¼í¬ì¸í°ë¥¼ íì¼ì 맨 ìì ëìµëë¤. + ê·¸ë¦¬ê³ íì¼ì í¬ê¸°ë¥¼0ì¼ë¡ ë§ëëë¤. íì¼ì´ ìì¼ë©´ ë§ëëë¤. </simpara> - </listitem> - <listitem> - <simpara> - 'a' - Open for writing only; place the file pointer at the end - of the file. If the file does not exist, attempt to create - it. + </listitem> + <listitem> + <simpara> + 'a' - ì°ê¸° ì ì©ì¼ë¡ ì´ë¦½ëë¤; íì¼ í¬ì¸í°ë¥¼ íì¼ì ëì ëìµëë¤. + íì¼ì´ ìì¼ë©´ ë§ëëë¤. </simpara> - </listitem> - <listitem> - <simpara> - 'a+' - Open for reading and writing; place the file pointer at - the end of the file. If the file does not exist, attempt to - create it. + </listitem> + <listitem> + <simpara> + 'a+' - ì½ê¸° ì°ê¸°ê° ê°ë¥í©ëë¤; íì¼ í¬ì¸í°ë¥¼ íì¼ì ëì ëìµëë¤. + íì¼ì´ ìì¼ë©´ ë§ëëë¤. </simpara> - </listitem> - </itemizedlist> - The <parameter>mode</parameter> may contain the letter - 'b'. This is useful only on systems which differentiate between - binary and text files (i.e., it's useless on Unix). If not - needed, this will be ignored. - </para> - <para> - You can use the optional third parameter and set it to "1", if - you want to search for the file in the <link - linkend="ini.include-path">include_path</link>, too. - </para> - <para> - <example> - <title><function>Fopen</function> example</title> - <programlisting role="php"> + </listitem> + </itemizedlist> + <parameter>mode</parameter>ê° ë¬¸ì'b'를 í¬í¨í ìë ììµëë¤. + ì´ê²ì ìì¤í ììì ë°ì´ë리ì í ì¤í¸ íì¼ì 구ë³ì§ëë° ì¸ëª¨ê° ììµëë¤ + (ë¤ì ë§íë©´ ì ëì¤ììë ì¸ëª¨ê° ììµëë¤).íìê° ìì¼ë©´ ì¬ì©íì§ ë§ì¸ì. + </para> + <para> + ì¸ë²ì§¸ 매ê°ë³ì를 ì¬ì©í ì ìëë° <link linkend="ini.include-path">include_path</link>ê°ì´ë°ì + íì¼ì ì°¾ê³ ì¶ì¼ë©´ "1"ë¡ ì¤ì íì¸ì. + </para> + <para> + <example> + <title> + <function>Fopen</function> example</title> + <programlisting role="php"> $fp = fopen ("/home/rasmus/file.txt", "r"); $fp = fopen ("/home/rasmus/file.gif", "wb"); $fp = fopen ("http://www.php.net/", "r"); $fp = fopen ("ftp://user:password@example.com/", "w"); </programlisting> - </example> - </para> - <simpara> - If you are experiencing problems with reading and writing to - files and you're using the server module version of PHP, remember - to make sure that the files and directories you're using are - accessible to the server process. - </simpara> - <para> - On the Windows platform, be careful to escape any backslashes - used in the path to the file, or use forward slashes. + </example> + </para> + <simpara> + PHPì ìë² ëª¨ë ë²ì ì ì¬ì©íëë° íì¼ì ì½ê³ ì°ëë° ë¬¸ì 를 겪ìë¤ë©´ + íì¼ê³¼ ëë í 리를 ìë² íë¡ì¸ì¤ê° ì ê·¼ì´ ê°ë¥íê² íëì§ íì¸í´ë³´ì¸ì + </simpara> + <para> + ìëì°ì¦ììë, íì¼ì ê²½ë¡ìì ë°±ì¬ëì를 ì¬ì©íëì§ ì¬ëì를 ì¬ì©íëì§ ì£¼ìíì¸ì. <informalexample> - <programlisting role="php"> + <programlisting role="php"> $fp = fopen ("c:\\data\\info.txt", "r"); </programlisting> - </informalexample> - </para> - <simpara> - See also <function>fclose</function>, + </informalexample> + </para> + <simpara> + 참조 <function>fclose</function>, <function>fsockopen</function>, <function>socket_set_timeout</function>, and <function>popen</function>. </simpara> - </refsect1> - </refentry> - - <refentry id="function.fpassthru"> - <refnamediv> - <refname>fpassthru</refname> - <refpurpose> - Output all remaining data on a file pointer + </refsect1> + </refentry> + <refentry id="function.fpassthru"> + <refnamediv> + <refname>fpassthru</refname> + <refpurpose> + íì¼ í¬ì¸í°ì ë¨ììë 모ë ë°ì´í를 ì¶ë ¥í©ëë¤ </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fpassthru</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - Reads to EOF on the given file pointer and writes the results to - standard output. - </simpara> - <simpara> - If an error occurs, <function>fpassthru</function> returns - false. - </simpara> - <simpara> - The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function>, - <function>popen</function>, or <function>fsockopen</function>. - The file is closed when <function>fpassthru</function> is done - reading it (leaving <parameter>fp</parameter> useless). - </simpara> - <simpara> - If you just want to dump the contents of a file to stdout you may - want to use the <function>readfile</function>, which saves you - the <function>fopen</function> call. - </simpara> - <simpara> - See also <function>readfile</function>, - <function>fopen</function>, <function>popen</function>, and + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fpassthru</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + 주ì´ì§ íì¼í¬ì¸í°ë¥¼ ëê¹ì§ ì½ê³ ì¼ë° ì¶ë ¥ì¼ë¡ 결과를 ìëë¤. + </simpara> + <simpara> + ìë¬ê° ë°ìíë©´<function>fpassthru</function>ë false를 ë°íí©ëë¤. + </simpara> + <simpara> + íì¼í¬ì¸í°ë ì í¨í ê²ì´ì´ì¼ í©ëë¤. ê·¸ë¦¬ê³ <function>fopen</function>, + <function>popen</function>, or <function>fsockopen</function>ì ìí´ ì±ê³µì ì¼ë¡ + ì´ë ¤ì§ íì¼ì ê°ë¦¬ì¼ì¼ í©ëë¤. + <function>fpassthru</function>ê° íì¼ì½ê¸°ë¥¼ ë§ì¹ë©´ íì¼ì´ ë«íëë¤. + (ë¨ê²¨ì§ <parameter>fp</parameter>ë ì¸ëª¨ê° ììµëë¤). + </simpara> + <simpara> + íì¼ì ë´ì©ì ì¼ë°ì¶ë ¥ì¼ë¡ ë³´ë´ê¸° ìí ê²ì´ë¼ë©´, <function>fopen</function>ì í¸ì¶íë ê²ë³´ë¤ + <function>readfile</function>ì ì¬ì©íê³ ì¶ì´í ê²ì ëë¤ + </simpara> + <simpara> + 참조<function>readfile</function>, + <function>fopen</function>, <function>popen</function>, ê·¸ë¦¬ê³ <function>fsockopen</function> - </simpara> - </refsect1> - </refentry> - - <refentry id="function.fputs"> - <refnamediv> - <refname>fputs</refname> - <refpurpose>Writes to a file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fputs</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>string <parameter>str</parameter></paramdef> - <paramdef>int + </simpara> + </refsect1> + </refentry> + <refentry id="function.fputs"> + <refnamediv> + <refname>fputs</refname> + <refpurpose>íì¼ í¬ì¸í°ì 기ë¡í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fputs</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>string <parameter>str</parameter> + </paramdef> + <paramdef>int <parameter> - <optional>length</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>Fputs</function> is an alias to - <function>fwrite</function>, and is identical in every way. Note - that the <parameter>length</parameter> parameter is optional and - if not specified the entire string will be written. - </para> - </refsect1> - </refentry> - - <refentry id="function.fread"> - <refnamediv> - <refname>fread</refname> - <refpurpose>Binary-safe file read</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>fread</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>length</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - <function>Fread</function> reads up to - <parameter>length</parameter> bytes from the file pointer - referenced by <parameter>fp</parameter>. Reading stops when - <parameter>length</parameter> bytes have been read or EOF is - reached, whichever comes first. - </simpara> - <para> - <informalexample> - <programlisting role="php"> -// get contents of a file into a string + <optional>length</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>Fputs</function>ë <function>fwrite</function>ë¡ ì¸ì ë ì¨ë¦¬ì´ì¤ ë©ëë¤. + <parameter>length</parameter>매ê°ë³ìë ì íì´ ê°ë¥íê³ ì ì²´ 문ìì´ì´ ëì´ëì§ ìì¼ë©´ ì°ì¬ì§ë¤ë ê²ì 주ìíì¸ì. + </para> + </refsect1> + </refentry> + <refentry id="function.fread"> + <refnamediv> + <refname>fread</refname> + <refpurpose>Binary-safe íì¼ ì½ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>fread</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>length</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + <function>Fread</function>ë <parameter>fp</parameter>ì ìí´ ì°¸ì¡°ê° ëë + íì¼ í¬ì¸í°ë¡ë¶í° <parameter>length</parameter>를 ë°ì´í¸ë¡ ì¦ê°ìí¤ë©° ì½ìµëë¤. + <parameter>length</parameter>ë°ì´í¸ê° ì½íê±°ë íì¼ì ëì ëë¬ëê±°ë + ëì¤ì 먼ì ëëë ê²ì´ ìì¼ë©´ ì½ê¸°ê° ì¢ ë£ë©ëë¤.. + </simpara> + <para> + <informalexample> + <programlisting role="php"> +// íì¼ì ë´ì©ì 문ìì´ë¡ ê°ì ¸ì¤ê¸° $filename = "/usr/local/something.txt"; $fd = fopen ($filename, "r"); -$contents = fread ($fd, filesize ($filename)); +$contents = fread ($fd, íì¼ìí¬ê¸° ($filename)); fclose ($fd); </programlisting> - </informalexample> - </para> - <simpara> - See also <function>fwrite</function>, <function>fopen</function>, + </informalexample> + </para> + <simpara> + 참조 <function>fwrite</function>, <function>fopen</function>, <function>fsockopen</function>, <function>popen</function>, <function>fgets</function>, <function>fgetss</function>, <function>fscanf</function>, <function>file</function>, and <function>fpassthru</function>. </simpara> - </refsect1> - </refentry> - - <refentry id="function.fscanf"> - <refnamediv> - <refname>fscanf</refname> - <refpurpose>Parses input from a file according to a format</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>fscanf</function></funcdef> - <paramdef>int <parameter>handle</parameter></paramdef> - <paramdef>string <parameter>format</parameter></paramdef> - <paramdef>string - <parameter><optional>var1</optional></parameter>... + </refsect1> + </refentry> + <refentry id="function.fscanf"> + <refnamediv> + <refname>fscanf</refname> + <refpurpose>íìì ë°ë¼ì íì¼ë¡ ë¶í° ë¶ìíì¬ ì ë ¥í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>mixed <function>fscanf</function> + </funcdef> + <paramdef>int <parameter>handle</parameter> + </paramdef> + <paramdef>string <parameter>format</parameter> + </paramdef> + <paramdef>string + <parameter> + <optional>var1</optional> + </parameter>... </paramdef> - </funcprototype> - </funcsynopsis> - <para> - The function <function>fscanf</function> is similar to - <function>sscanf</function>, but it takes its input from a file - associated with <parameter>handle</parameter> and interprets the - input according to the specified - <parameter>format</parameter>. If only two parameters were passed - to this function, the values parsed will be returned as an array. - Otherwise, if optional parameters are passed, the function will - return the number of assigned values. The optional parameters - must be passed by reference. + </funcprototype> + </funcsynopsis> + <para> + <function>fscanf</function>ë <function>sscanf</function>ê³¼ ë¹ì·íì§ë§, + ë´ì©ì íì¼ë¡ë¶í° ê°ì ¸ì¨ë¤ë ê²ì´ ë¤ë¦ ëë¤. + <parameter>handle</parameter>ê³¼ í¨ê» ì¼ë ¨ì <parameter>format</parameter>ì¼ë¡ + ì ë ¥ë´ì©ì ë°ê¾¸ì´ ì¤ëë¤. + ì´ í¨ìì ëê°ì 매ê°ë³ìë§ ì¬ì©ëë¤ë©´ ë°°ì´ íìì ê°ì¼ë¡ ë³íëì´ ë°íë©ëë¤. + ê·¸ë ì§ ìì ê²½ì°ìë ì íì ì¸ ë§¤ê°ë³ì를 ì¬ì©íì§ ìì¼ë©´ ì´ í¨ìë í ë¹ë ê°ì ì«ìë¡ ë°íí©ëë¤. + ì íì ì¸ ë§¤ê°ë³ìë ë°ëì passed by referenceì¬ì¼ í©ëë¤. <example> - <title><function>Fscanf</function> Example</title> - <programlisting role="php"> + <title> + <function>Fscanf</function>ì</title> + <programlisting role="php"> $fp = fopen ("users.txt","r"); while ($userinfo = fscanf ($fp, "%s\t%s\t%s\n")) { list ($name, $profession, $countrycode) = $userinfo; @@ -1329,265 +1236,278 @@ } fclose($fp); </programlisting> - </example> - <example> - <title>users.txt</title> - <programlisting> + </example> + <example> + <title>users.txt</title> + <programlisting> javier argonaut pe hiroshi sculptor jp robert slacker us luigi florist it </programlisting> - </example> - </para> - <para> - See also <function>fread</function>, <function>fgets</function>, + </example> + </para> + <para> + 참조 <function>fread</function>, <function>fgets</function>, <function>fgetss</function>, <function>sscanf</function>, <function>printf</function>, and <function>sprintf</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.fseek"> - <refnamediv> - <refname>fseek</refname> - <refpurpose>Seeks on a file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fseek</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>offset</parameter></paramdef> - <paramdef>int - <parameter><optional>whence</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <para> - Sets the file position indicator for the file referenced by - <parameter>fp</parameter>.The new position, measured in bytes - from the beginning of the file, is obtained by adding - <parameter>offset</parameter> to the position specified by - <parameter>whence</parameter>, whose values are defined as - follows: + </refsect1> + </refentry> + <refentry id="function.fseek"> + <refnamediv> + <refname>fseek</refname> + <refpurpose>íì¼ í¬ì¸í°ìì 찾기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fseek</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>offset</parameter> + </paramdef> + <paramdef>int + <parameter> + <optional>whence</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <parameter>fp</parameter>ì ìí´ ì°¸ì¡°ëë íì¼ì íì¼ ìì¹ ì¸¡ì ìë¡ ì¤ì í©ëë¤. + íì¼ì ìììì¹ììë¶í° ë°ì´í¸ë¨ìë¡ ì¸¡ì ëë ìë¡ì´ìì¹ë + ìëì ê°ì´ ì ìë <parameter>whence</parameter>ë¡ë¶í° ëì´ì´ ë ìì¹ì <parameter>offset</parameter>ì ì¶ê°íì¬ ì»ì´ì§ëë¤ <simplelist> - <member>SEEK_SET - Set position equal to - <parameter>offset</parameter> bytes.</member> <member>SEEK_CUR - - Set position to current location plus - <parameter>offset</parameter>.</member> <member>SEEK_END - Set - position to end-of-file plus - <parameter>offset</parameter>.</member> - </simplelist> - </para> - <para>If <parameter>whence is not specified, it is assumed to be - SEEK_SET.</parameter> - </para> - <para> - Upon success, returns 0; otherwise, returns -1. Note that seeking - past EOF is not considered an error. - </para> - <para> - May not be used on file pointers returned by - <function>fopen</function> if they use the "http://" or "ftp://" - formats. - </para> - <note> - <para> - The <parameter>whence</parameter> argument was added after PHP 4.0 RC1. + <member>SEEK_SET - ìì¹ë¥¼ <parameter>offset</parameter>ë°ì´í¸ì ê°ê² í©ëë¤.</member> + <member>SEEK_CUR - + íì¬ ìì¹ì <parameter>offset</parameter>ì ëíì¬ ìì¹ë¥¼ ì í©ëë¤.</member> + <member>SEEK_END - íì¼ì ëì + <parameter>offset</parameter>ì ëíì¬ ìì¹ë¥¼ ì í©ëë¤.</member> + </simplelist> + </para> + <para>ë§ì½ì<parameter>whence ê° ì í´ì§ì§ ììë¤ë©´ SEEK_SETì¼ë¡ ê°ì ì´ ë©ëë¤.</parameter> + </para> + <para> + ì±ê³µíë©´ 0ì ë°ííê³ ê·¸ë ì§ ìì¼ë©´ 1ì ë°íí©ëë¤. + ì´ì ì EOF를 ì°¾ì ê²ì ìë¬ì ìí¥ì ì£¼ì§ ììµëë¤ + </para> + <para> + ë§ì½ì "http://" or "ftp://" íìì ì¬ì©íë¤ë©´ + <function>fopen</function>ì ìí´ ë°íëë íì¼í¬ì¸í° ììì ì¬ì©ëì§ ìì ê²ì ëë¤ + </para> + <note> + <para> + <parameter>whence</parameter>ì¸ìë PHP 4.0 RC1 ì´íì ì¶ê°ëììµëë¤. </para> - </note> - <para> - See also <function>ftell</function> and + </note> + <para> + 참조 <function>ftell</function> and <function>rewind</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.fstat"> - <refnamediv> - <refname>fstat</refname> - <refpurpose> - Gets information about a file using an open file pointer + </refsect1> + </refentry> + <refentry id="function.fstat"> + <refnamediv> + <refname>fstat</refname> + <refpurpose> + ì¤í íì¼ í¬ì¸í°ë¥¼ ì¬ì©íë íì¼ì ëí ì ë³´ ê°ì ¸ì¤ê¸° </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>fstat</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Gathers the statistics of the file opened by the file - pointer fp. This function is similar to the - <function>stat</function> function except that it operates - on an open file pointer instead of a filename. - </para> - <para> - Returns an array with the statistics of the file with the - following elements: - <orderedlist> - <listitem><simpara>device</simpara></listitem> - <listitem><simpara>inode</simpara></listitem> - <listitem><simpara>number of links</simpara></listitem> - <listitem><simpara>user id of owner</simpara></listitem> - <listitem><simpara>group id owner</simpara></listitem> - <listitem><simpara>device type if inode device *</simpara></listitem> - <listitem><simpara>size in bytes</simpara></listitem> - <listitem><simpara>time of last access</simpara></listitem> - <listitem><simpara>time of last modification</simpara></listitem> - <listitem><simpara>time of last change</simpara></listitem> - <listitem><simpara>blocksize for filesystem I/O *</simpara></listitem> - <listitem><simpara>number of blocks allocated</simpara></listitem> - </orderedlist> - * - only valid on systems supporting the st_blksize type--other - systems (i.e. Windows) return -1</para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>fstat</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼ í¬ì¸í° fpì ìí´ì ì´ë ¤ì§ íì¼ì ì 보를 모ìëë¤.Gathers the statistics of the file opened by the file + ì´ í¨ìë filenameëì ì ì¤í íì¼ í¬ì¸í°ììì ëìíë¤ë ê²ì ì ì¸íê³ ë <function>stat</function>ê³¼ ë¹ì·í©ëë¤. </para> - </refsect1> - </refentry> - - <refentry id="function.ftell"> - <refnamediv> - <refname>ftell</refname> - <refpurpose>Tells file pointer read/write position</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>ftell</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the position of the file pointer referenced by fp; i.e., - its offset into the file stream. - </para> - <para> - If an error occurs, returns false. - </para> - <para> - The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function> or - <function>popen</function>. + <para> + ë¤ìì ììë¤ê³¼ í¨ê» íì¼ì íµê³ìë£ë¥¼ ë°°ì´ë¡ ë°íí©ëë¤: + <orderedlist> + <listitem> + <simpara>ì¥ì¹(device)</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë</simpara> + </listitem> + <listitem> + <simpara>ë§í¬ì ê°¯ì</simpara> + </listitem> + <listitem> + <simpara>ìì ìì user id</simpara> + </listitem> + <listitem> + <simpara>ìì ìì group id</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë ì¥ì¹(device)ê° ìì¼ë©´ ì¥ì¹(device) íí*</simpara> + </listitem> + <listitem> + <simpara>ë°ì´í¸ë¨ì í¬ê¸°</simpara> + </listitem> + <listitem> + <simpara>ë§ì§ë§ ì ê·¼ìê°</simpara> + </listitem> + <listitem> + <simpara>ë§ì§ë§ ìì ë ìê°</simpara> + </listitem> + <listitem> + <simpara>ë§ì§ë§ ë°ë ìê°</simpara> + </listitem> + <listitem> + <simpara>íì¼ ìì¤í ì ì¶ë ¥(I/O) blocksize*</simpara> + </listitem> + <listitem> + <simpara>í ë¹ë blockì ì</simpara> + </listitem> + </orderedlist> + * - st_blksize íí를 ì§ìíë ìì¤í ìë§ ì í¨í©ëë¤--ë¤ë¥¸ ìì¤í + (ë¤ì ë§í´ì ìëì°ì¦ê°ì)ì -1ì ë°íí©ëë¤</para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë + ìì¸í ìê³ ì¶ì¼ë©´ <function>clearstatcache</function>참조íì¸ì + </para> + </refsect1> + </refentry> + <refentry id="function.ftell"> + <refnamediv> + <refname>ftell</refname> + <refpurpose>íì¼í¬ì¸í°ì ì½ê¸°/ì°ê¸° ìì¹ ë§í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ftell</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + fpì ìí´ ì°¸ì¡°ëë íì¼ì ìì¹ë¥¼ ë°íí©ëë¤. ë¤ì ë§í´ì ììë ê²°ê³¼ê° íì¼ ì¤í¸ë¦¼ìì¼ë¡ ë¤ì´ê°ëë¤ </para> + <para> + ìë¬ê° ë°ìíë©´ false를 ë°íí©ëë¤. + </para> + <para> + íì¼ í¬ì¸í°ë ë°ëì ì í¨í ê²ì´ì´ì¼ íê³ <function>fopen</function>ì´ë + <function>popen</function>ì ìí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì ê°ë¦¬ì¼ì¼ í©ëë¤. </para> - <para> - See also <function>fopen</function>, <function>popen</function>, + <para> + 참조<function>fopen</function>, <function>popen</function>, <function>fseek</function> and <function>rewind</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.ftruncate"> - <refnamediv> - <refname>ftruncate</refname> - <refpurpose> - Truncates a file to a given length. + </refsect1> + </refentry> + <refentry id="function.ftruncate"> + <refnamediv> + <refname>ftruncate</refname> + <refpurpose> + 주ì´ì§ 길ì´ë¡ ìë¼ë´ê¸° </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>ftruncate</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>size</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Takes the filepointer, fp, and truncates the file to length, size. - This function returns true on success and false on failure. - </para> - </refsect1> - </refentry> - - <refentry id="function.fwrite"> - <refnamediv> - <refname>fwrite</refname> - <refpurpose>Binary-safe file write</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fwrite</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>string <parameter>string</parameter></paramdef> - <paramdef>int + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ftruncate</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>size</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼í¬ì¸í°ì fp를 ê°ì ¸ìµëë¤. ê·¸ë¦¬ê³ íì¼ì 길ì´, í¬ê¸°ë¡ ìë¼ë ëë¤. + ì´ í¨ìë ì±ê³µíë©´ true, ì¤í¨íë©´ false를 ë°íí©ëë¤ + </para> + </refsect1> + </refentry> + <refentry id="function.fwrite"> + <refnamediv> + <refname>fwrite</refname> + <refpurpose>Binary-safe íì¼ ì°ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fwrite</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>string <parameter>string</parameter> + </paramdef> + <paramdef>int <parameter> - <optional>length</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - <function>fwrite</function> writes the contents of - <parameter>string</parameter> to the file stream pointed to by - <parameter>fp</parameter>. If the <parameter>length</parameter> - argument is given, writing will stop after - <parameter>length</parameter> bytes have been written or the end - of <parameter>string</parameter> is reached, whichever comes - first. - </simpara> - <simpara> - Note that if the <parameter>length</parameter> argument is given, - then the <link - linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link> - configuration option will be ignored and no slashes will be - stripped from <parameter>string</parameter>. + <optional>length</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + <function>fwrite</function>ë <parameter>fp</parameter>ì ìí´ ì§ì ì´ ëë + íì¼ ì¤í¸ë¦¼ì <parameter>string</parameter>ì ë´ì©ì 기ë¡í©ëë¤. + <parameter>length</parameter>ì¸ìê° ì£¼ì´ì§ë©´ + <parameter>length</parameter>ë°ì´í¸ê° 기ë¡ì´ ëê±°ë + <parameter>string</parameter>ì ëì ëë¬íê±°ë 먼ì ëëë ê²ì ìí´ ê¸°ë¡íë ê²ì ë©ì¶¥ëë¤. + </simpara> + <simpara> + 주ìí ê²ì <parameter>length</parameter>ì¸ìê° ì£¼ì´ì§ë©´, + <link linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link>ì¤ì ìµì ì 무ìê° ëê³ + ì¬ëìë <parameter>string</parameter>ìì ì ê±°ëì§ ìê²ë©ëë¤. </simpara> - <simpara> - See also <function>fread</function>, <function>fopen</function>, + <simpara> + 참조<function>fread</function>, <function>fopen</function>, <function>fsockopen</function>, <function>popen</function>, and <function>fputs</function>. </simpara> - </refsect1> - </refentry> - - <refentry id="function.set-file-buffer"> - <refnamediv> - <refname>set_file_buffer</refname> - <refpurpose> - Sets file buffering on the given file pointer + </refsect1> + </refentry> + <refentry id="function.set-file-buffer"> + <refnamediv> + <refname>set_file_buffer</refname> + <refpurpose> + 주ì´ì§ íì¼ í¬ì¸í°ì íì¼ ë²í¼ë§ ì¤ì í기 </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>set_file_buffer</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>buffer</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - Output using <function>fwrite</function> is normally buffered at - 8K. This means that if there are two processess wanting to write - to the same output stream (a file), each is paused after 8K of - data to allow the other to write. <function>set_file_buffer</function> - sets the buffering for write operations on the given filepointer - <parameter>fp</parameter> to <parameter>buffer</parameter> bytes. - If <parameter>buffer</parameter> is 0 then write operations are - unbuffered. This ensures that all writes with - <function>fwrite</function> are completed before other processes - are allowed to write to that output stream. + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>set_file_buffer</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>buffer</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + ì¶ë ¥ìì ì¬ì©ëë<function>fwrite</function>ë ë³´íµ 8Kë¡ ë²í¼ë§ ë©ëë¤. + ì´ê²ì íëì íì¼ì ê°ì ì¶ë ¥ ì¤í¸ë¦¼ì ì°ë ¤ê³ íë ëê°ì íë¡ì¸ì¤ê° ì¡´ì¬íë¤ë©´, ê°ê°ì 8Kì ë°ì´í°ë¥¼ ë²í¼ì ì ì¥íí ë¤ë¥¸ íëê° ì¸ ì ìëë¡ ì ì ë©ì¶ë¤ë ì미ì ëë¤. <function>set_file_buffer</function>ë <parameter>fp</parameter>ê° ì£¼ì´ì§ íì¼ í¬ì¸í° ìì <parameter>buffer</parameter>ë°ì´í¸ ë²í¼ë§ ì°ê¸°ìì ì ìíí ì ìëë¡ ì¤ì í©ëë¤ + ë§ì½ì <parameter>buffer</parameter>ê° 0 ì´ë©´ ì°ê¸°ìì ì ë²í¼ì ì ì¥ëì§ ììµëë¤. ì´ê²ì<function>fwrite</function>ë¡ ìííë 모ë ì°ê¸°ê° ë¤ë¥¸ íë¡ì¸ì¤ìì ì¶ë ¥ ì¤í¸ë¦¼ì 기ë¡íë ¤ë ê²ì íì©í기 ì ì ìë£ëëë¡ í©ëë¤. </simpara> - <simpara> + <simpara> The function returns 0 on success, or EOF if the request cannot be honored. </simpara> - <para> - The following example demonstrates how to use - <function>set_file_buffer</function> to create an unbuffered stream. + <para> + ìëì ìë ì´ë»ê² <function>set_file_buffer</function>를 ì¬ì©í´ì ë²í¼ëì§ ìë ì¤í¸ë¦¼ì ë§ëë ì§ ë³´ì¬ì¤ëë¤. <example> - <title><function>set_file_buffer</function> example</title> - <programlisting role="php"> + <title> + <function>set_file_buffer</function>ì</title> + <programlisting role="php"> $fp=fopen($file, "w"); if($fp){ set_file_buffer($fp, 0); @@ -1595,982 +1515,960 @@ fclose($fp); } </programlisting> - </example> - </para> - - <simpara> - See also <function>fopen</function>, <function>fwrite</function>. - </simpara> - </refsect1> - </refentry> - - <refentry id="function.is-dir"> - <refnamediv> - <refname>is_dir</refname> - <refpurpose>Tells whether the filename is a directory</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>is_dir</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns true if the filename exists and is a directory. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <para> - See also <function>is_file</function> and + </example> + </para> + <simpara> + 참조<function>fopen</function>, <function>fwrite</function>. + </simpara> + </refsect1> + </refentry> + <refentry id="function.is-dir"> + <refnamediv> + <refname>is_dir</refname> + <refpurpose>filename ì´ ëë í 리ì¸ì§ ìëì§ ì´ì¼ê¸°í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>is_dir</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filenameì´ ì¡´ì¬íê³ ëë í 리ì´ë©´ true를 ë°íí©ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ë ìì¸í ë´ì©ì ìê³ ì¶ì¼ë©´ + <function>clearstatcache</function>를 ë³´ì¸ì </para> + <para> + 참조<function>is_file</function>ê·¸ë¦¬ê³ <function>is_link</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.is-executable"> - <refnamediv> - <refname>is_executable</refname> - <refpurpose>Tells whether the filename is executable</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>is_executable</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns true if the filename exists and is executable. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <para> - See also <function>is_file</function> and + </refsect1> + </refentry> + <refentry id="function.is-executable"> + <refnamediv> + <refname>is_executable</refname> + <refpurpose>filenameì´ ì¤íê°ë¥í ê²ì¸ì§ ìëì§ ì´ì¼ê¸°í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>is_executable</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filenameì´ ì¡´ì¬íê³ , ì¤íê°ë¥í ê²ì´ë©´ true를 ë°íí©ëë¤ + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì¼ë©´ + <function>clearstatcache</function>를 ë³´ì¸ì </para> + <para> + 참조 <function>is_file</function> ê·¸ë¦¬ê³ <function>is_link</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.is-file"> - <refnamediv> - <refname>is_file</refname> - <refpurpose> - Tells whether the filename is a regular file + </refsect1> + </refentry> + <refentry id="function.is-file"> + <refnamediv> + <refname>is_file</refname> + <refpurpose> + filenameì´ ë³´íµ íì¼ì¸ì§ ìëì§ ì´ì¼ê¸°í기 </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>is_file</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns true if the filename exists and is a regular file. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>is_file</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filenameì´ ì¡´ì¬íê³ , ì ìì ì¸ ë³´íµì íì¼ì´ë¼ë©´(regular) true를 ë°í + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì¼ë©´ + <function>clearstatcache</function>를 ë³´ì¸ì. </para> - <para> - See also <function>is_dir</function> and + <para> + 참조<function>is_dir</function> ê·¸ë¦¬ê³ <function>is_link</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.is-link"> - <refnamediv> - <refname>is_link</refname> - <refpurpose> - Tells whether the filename is a symbolic link + </refsect1> + </refentry> + <refentry id="function.is-link"> + <refnamediv> + <refname>is_link</refname> + <refpurpose> + filenameì´ ì¬ë³¼ë¦ ë§í¬ì¸ì§ ìëì§ ì´ì¼ê¸°í기 </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>is_link</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns true if the filename exists and is a symbolic link. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>is_link</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filenameì´ ì¡´ì¬íê³ ì¬ë³¼ë¦ë§í¬ë íì¼ì´ë¼ë©´ true + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì¼ë©´ + <function>clearstatcache</function>를 ë³´ì¸ì. </para> - <para> - See also <function>is_dir</function> and + <para> + 참조 <function>is_dir</function> ê·¸ë¦¬ê³ <function>is_file</function>. </para> - <note> - <simpara> - This function does not work on Windows systems - </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.is-readable"> - <refnamediv> - <refname>is_readable</refname> - <refpurpose> - Tells whether the filename is readable + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> + </note> + </refsect1> + </refentry> + <refentry id="function.is-readable"> + <refnamediv> + <refname>is_readable</refname> + <refpurpose> + filenameì´ ì½ê¸° ê°ë¥í ê²ì¸ì§ ìëì§ ì´ì¼ê¸°í기 </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>is_readable</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns true if the filename exists and is readable. - </para> - <para> - Keep in mind that PHP may be accessing the file as the user - id that the web server runs as (often 'nobody'). Safe mode - limitations are not taken into account. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <para> - See also <function>is_writable</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.is-writable"> - <refnamediv> - <refname>is_writable</refname> - <refpurpose>Tells whether the filename is writable</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>is_writable</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns true if the filename exists and is writable. The - filename argument may be a directory name allowing you to check - if a directory is writeable. - </para> - <para> - Keep in mind that PHP may be accessing the file as the user id - that the web server runs as (often 'nobody'). Safe mode - limitations are not taken into account. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <para> - See also <function>is_readable</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.is-uploaded-file"> - <refnamediv> - <refname>is_uploaded_file</refname> - <refpurpose>Tells whether the file was uploaded via HTTP POST.</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>is_uploaded_file</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - - <para> - This function is available only in versions of PHP 3 after PHP - 3.0.16, and in versions of PHP 4 after 4.0.2. - </para> - - <para> - Returns true if the file named by <varname>filename</varname> was - uploaded via HTTP POST. This is useful to help ensure that a - malicious user hasn't tried to trick the script into working on - files upon which it should not be working--for instance, - <filename>/etc/passwd</filename>. - </para> - - <para> - This sort of check is especially important if there is any chance - that anything done with uploaded files could reveal their - contents to the user, or even to other users on the same - system. - </para> - - <para> - See also <function>move_uploaded_file</function>, and the section - <link linkend="features.file-upload">Handling file uploads</link> - for a simple usage example. - </para> - </refsect1> - </refentry> - - <refentry id="function.link"> - <refnamediv> - <refname>link</refname> - <refpurpose>Create a hard link</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>link</function></funcdef> - <paramdef>string <parameter>target</parameter></paramdef> - <paramdef>string <parameter>link</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>Link</function> creates a hard link.</para> - <para> - See also the <function>symlink</function> to create soft links, - and <function>readlink</function> along with - <function>linkinfo</function>. - </para> - <note> - <simpara> - This function does not work on Windows systems - </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.linkinfo"> - <refnamediv> - <refname>linkinfo</refname> - <refpurpose>Gets information about a link</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>linkinfo</function></funcdef> - <paramdef>string <parameter>path</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>Linkinfo</function> returns the st_dev field of the - UNIX C stat structure returned by the lstat system call. This - function is used to verify if a link (pointed to by - <parameter>path</parameter>) really exists (using the same method - as the S_ISLNK macro defined in stat.h). Returns 0 or FALSE in - case of error. - </para> - <para> - See also <function>symlink</function>, <function>link</function>, - and <function>readlink</function>. - </para> - <note> - <simpara> - This function does not work on Windows systems + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>is_readable</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filenameì´ ì¡´ì¬íê³ ì½ê¸° ê°ë¥í ê²ì´ë©´ true를 ë°íí©ëë¤ + </para> + <para> + ì¹ ìë²ê° ì주 'nobody' ë±ì¼ë¡ ì¤íë ë PHPë íì¼ì ì ê·¼í ë + ì¬ì©ì ìì´ëë¡ ì ê·¼í ìê° ìë¤ë ê²ì ëª ì¬íì¸ì.. + ìì 모ëì íê³ë ê³ì ì¼ë¡ ë°ìë¤ì¬ì§ì§ ìëë¤ë ê²ì ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì¼ë©´ + <function>clearstatcache</function> 를 ë³´ì¸ì </para> + <para> + 참조<function>is_writable</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.is-writable"> + <refnamediv> + <refname>is_writable</refname> + <refpurpose>filenameì´ ì°ê¸°ê°ë¥í ê²ì¸ì§ ìëì§ ì´ì¼ê¸°í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>is_writable</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filenameì´ ì¡´ì¬íê³ ì°ê¸°ê°ë¥í ê²ì´ë©´ true를 ë°íí©ëë¤. + filenameì ì¸ìë ëë í ë¦¬ê° ì°ê¸°ê°ë¥í ê²ì¼ë + ëë í 리ì´ë¦ì¸ì§ ì²´í¬í ì ìëë¡ í©ëë¤. + </para> + <para> + ì¹ ìë²ê° 'nobody' ë±ì¼ë¡ ì¤íì´ ë ë PHPë ì¬ì©ì ìì´ëë¡ + íì¼ì ì ê·¼íë ¤ê³ í ì ìë¤ë ê²ì ëª ì¬íì¸ì. + ìì 모ëì íê³ë ê³ì ì´ ë°ìë¤ì¬ì§ì§ ìëë¤ë ê²ì ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì¼ë©´ + <function>clearstatcache</function>를 ë³´ì¸ì </para> + <para> + 참조<function>is_readable</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.is-uploaded-file"> + <refnamediv> + <refname>is_uploaded_file</refname> + <refpurpose>fileì´ HTTP POST를 íµí´ ì ë¡ëë ê²ì¸ì§ ìëì§ ì´ì¼ê¸°í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>is_uploaded_file</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + ì´ í¨ìë PHP 3 ììë 3.0.16 ì´í, PHP 4 ììë 4.0.2 ì´í ë²ì ë¶í° ì¬ì©ì´ ê°ë¥í©ëë¤.. + </para> + <para> + HTTP POST를 íµí´ ì ë¡ëëì´ íì¼ì ì´ë¦ì´ <varname>filename</varname>ì ìí´ ë¶ì¬ì§ ê²ì´ë©´ + true를 ë°íí©ëë¤. ì ìì ì¸ ì¬ì©ìê° ëìíì§ ë§ìì¼í íì¼ìì ëìíë ì¤í¬ë¦½í¸ë¥¼ ì¬ì©íë ¤ë + í¸ë¦ì ì°ì§ 못íëë¡ íëë° ì ì©í©ëë¤.--ì를 ë¤ìë©´, + <filename>/etc/passwd</filename>ê°ì ê²ì ëë¤. + </para> + <para> + ì ë¡ëë íì¼ì ì í ìëì§ ìê³ ì¬ì©ìë ê°ì ìì¤í ë´ì ë¤ë¥¸ ì¬ëìê² ì¡°ì°¨ë + ì ë¡ëë íì¼ì ë´ì©ì ê°ì¶ìê° ìë ì´ë¤ 기íë¼ë ìë¤ë©´ ì´ë°ìì¼ë¡ ì²´í¬íëê²ì í¹í ì¤ìí©ëë¤. + </para> + <para> + 참조<function>move_uploaded_file</function>, ê·¸ë¦¬ê³ ë¨ìí ì¬ì©ì를 ìí´ì + <link linkend="features.file-upload">Handling file uploads</link>ë¶ë¶ + + </para> + </refsect1> + </refentry> + <refentry id="function.link"> + <refnamediv> + <refname>link</refname> + <refpurpose>hard link ë§ë¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>link</function> + </funcdef> + <paramdef>string <parameter>target</parameter> + </paramdef> + <paramdef>string <parameter>link</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>Link</function> hard link를 ë§ëëë¤.</para> + <para> + 참조 <function>symlink</function>soft links를 ë§ëëë¤. + ê·¸ë¦¬ê³ <function>linkinfo</function>ì í¨ê» ìíëë<function>readlink</function> + </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ìì ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.mkdir"> - <refnamediv> - <refname>mkdir</refname> - <refpurpose>Makes directory</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>mkdir</function></funcdef> - <paramdef>string <parameter>pathname</parameter></paramdef> - <paramdef>int <parameter>mode</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Attempts to create the directory specified by pathname. - </para> - <para> - Note that you probably want to specify the mode as an - octal number, which means it should have a leading zero. - <informalexample> - <programlisting role="php"> -mkdir ("/path/to/my/dir", 0700); - </programlisting> - </informalexample> - </para> - <para> - Returns true on success and false on failure. - </para> - <para> - See also <function>rmdir</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.move-uploaded-file"> - <refnamediv> - <refname>move_uploaded_file</refname> - <refpurpose>Moves an uploaded file to a new location.</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>move_uploaded_file</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>string <parameter>destination</parameter></paramdef> - </funcprototype> - </funcsynopsis> - - <para> - This function is available only in versions of PHP 3 after PHP - 3.0.16, and in versions of PHP 4 after 4.0.2. - </para> - - <para> - This function checks to ensure that the file designated by - <parameter>filename</parameter> is a valid upload file (meaning - that it was uploaded via PHP's HTTP POST upload mechanism). If - the file is valid, it will be moved to the filename given by - <parameter>destination</parameter>. - </para> - - <para> - If <parameter>filename</parameter> is not a valid upload file, - then no action will occur, and - <function>move_uploaded_file</function> will return - <literal>false</literal>. - </para> - - <para> - If <parameter>filename</parameter> is a valid upload file, but - cannot be moved for some reason, no action will occur, and - <function>move_uploaded_file</function> will return - <literal>false</literal>. Additionally, a warning will be issued. - </para> - - <para> - This sort of check is especially important if there is any chance - that anything done with uploaded files could reveal their - contents to the user, or even to other users on the same - system. - </para> - - <para> - See also <function>is_uploaded_file</function>, and the section - <link linkend="features.file-upload">Handling file uploads</link> - for a simple usage example. - </para> - </refsect1> - </refentry> - - <refentry id="function.pclose"> - <refnamediv> - <refname>pclose</refname> - <refpurpose>Closes process file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>pclose</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Closes a file pointer to a pipe opened by - <function>popen</function>. - </para> - <para> - The file pointer must be valid, and must have been returned by a - successful call to <function>popen</function>. - </para> - <para> - Returns the termination status of the process that was - run. - </para> - <para> - See also <function>popen</function>. + </note> + </refsect1> + </refentry> + <refentry id="function.linkinfo"> + <refnamediv> + <refname>linkinfo</refname> + <refpurpose>ë§í¬ ì ë³´ ê°ì ¸ì¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>linkinfo</function> + </funcdef> + <paramdef>string <parameter>path</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>Linkinfo</function>ë ë§ì§ë§ ìì¤í í¸ì¶ì ìí´ì ë°íì´ ëë ì ëì¤ C stat 구조체ì ëë¤. + ì´ í¨ìë ë§í¬(<parameter>path</parameter>ì ìí´ ì§ì ë)ê° ì¤ì ë¡ ìëì§ ê²ì¦íëë° ì¬ì©ì´ ë곤 í©ëë¤. + (stat.hì 매í¬ë¡ ì ìë S_ISLINK ì ê°ì ë°©ë²ì ì¬ì©í©ëë¤.) This + 0ì ë°ííê±°ë ì¤í¨ì FALSE를 ë°íí©ëë¤. + </para> + <para> + 참조<function>symlink</function>, <function>link</function>, + ê·¸ë¦¬ê³ <function>readlink</function>. + </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ìì ëìíì§ ììµëë¤. </simpara> + </note> + </refsect1> + </refentry> + <refentry id="function.mkdir"> + <refnamediv> + <refname>mkdir</refname> + <refpurpose>ëë í 리 ë§ë¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>mkdir</function> + </funcdef> + <paramdef>string <parameter>pathname</parameter> + </paramdef> + <paramdef>int <parameter>mode</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + pathnameì ëª ê¸°ë ì´ë¦ì¼ë¡ ëë í 리 ë§ë¤ê¸° </para> - </refsect1> - </refentry> - - <refentry id="function.popen"> - <refnamediv> - <refname>popen</refname> - <refpurpose>Opens process file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>popen</function></funcdef> - <paramdef>string <parameter>command</parameter></paramdef> - <paramdef>string <parameter>mode</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Opens a pipe to a process executed by forking the command given - by command. - </para> - <para> - Returns a file pointer identical to that returned by - <function>fopen</function>, except that it is unidirectional (may - only be used for reading or writing) and must be closed with - <function>pclose</function>. This pointer may be used with - <function>fgets</function>, <function>fgetss</function>, and - <function>fputs</function>. - </para> - <para> - If an error occurs, returns false. - </para> - <para> + <para> + 모ë를 ëª ê¸°íëë° 8ì§ì를 ì¬ì©íë ¤ê³ í ê²½ì°ì 주ìí ê²ì ìì 0ì´ ë¶ì´ì¼ íë¤ë ê²ì ëë¤. <informalexample> - <programlisting role="php"> + <programlisting role="php"> + mkdir ("/path/to/my/dir", 0700); + </programlisting> + </informalexample> + </para> + <para> + ì±ê³µíë©´ true, ì¤í¨íë©´ false를 ë°íí©ëë¤. + </para> + <para> + 참조<function>rmdir</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.move-uploaded-file"> + <refnamediv> + <refname>move_uploaded_file</refname> + <refpurpose>ì ë¡ëë íì¼ì ë¤ë¥¸ê³³ì¼ë¡ ì´ëí기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>move_uploaded_file</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>string <parameter>destination</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + ì´ í¨ìë PHP 3 ììë 3.0.16 ì´í, PHP 4 ììë 4.0.2 ì´í ë²ì ë¶í° ì¬ì©í ì ììµëë¤. + </para> + <para> + ì´ í¨ìë <parameter>filename</parameter>ì ìí´ì ì§ì ë íì¼ì´ PHPì HTTP POST íì¼ ì ë¡ë ë©ì¹´ëì¦ì + íµí´ì ì ë¡ëë íì¼ì¸ì§ íì¸í©ëë¤. íì¼ì´ ì í¨í ê²ì¼ë <parameter>destination</parameter>ì 주ì´ì§ filenameì¼ë¡ ì´ëì´ ë©ëë¤ + </para> + <para> + <parameter>filename</parameter>ì´ ì í¨í ê²ì´ ìëë©´ ì무 ì¼ë ë°ìíì§ ììµëë¤. + ê·¸ë¦¬ê³ <function>move_uploaded_file</function>ë <literal>false</literal>를 ë°íí©ëë¤. + </para> + <para> + <parameter>filename</parameter>ì ì í¨íë ì´ë¤ ì´ì ê° ìì´ì ì´ëí ìê° ìì ë + ìë¬´ë° ì¼ë ë°ìíì§ ììµëë¤. ê·¸ë¦¬ê³ <function>move_uploaded_file</function>ì + <literal>false</literal>를 ë°íí©ëë¤. ë§ë¶ì¬ì ê²½ê³ ë¬¸ì´ ë³´ì¬ì§ëë¤. + </para> + <para> + ì´ë° ì²´í¬ë°©ë²ì íì¼ìë´ì©ì ì´ì©ì, ê°ì ìì¤í ë´ì ë¤ë¥¸ ì¬ëìê² íì¼ì + ìëì§ ìê³ íì¼ì ë´ì©ì ê°ì¶ ì ìë ì´ë¤ 기íê° ìë¤ë©´ í¹ë³í ëì± ì¤ìí©ëë¤. + </para> + <para> + 참조 <function>is_uploaded_file</function>, ê·¸ë¦¬ê³ ê°ë¨í ì¬ì©ë² ì를 ìí + <link linkend="features.file-upload">Handling file uploads</link>ë¶ë¶. + </para> + </refsect1> + </refentry> + <refentry id="function.pclose"> + <refnamediv> + <refname>pclose</refname> + <refpurpose>ì§íëë íì¼ í¬ì¸í° ë«ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>pclose</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>popen</function>ì ìí´ ì´ë ¤ì§ íì¼ í¬ì¸í°ë¥¼ íì´íë¡ ë«ê¸°. + </para> + <para> + íì¼ í¬ì¸í°ë ì í¨í ê²ì´ì´ì¼ íê³ <function>popen</function>ì¼ë¡ ì±ê³µì ì¼ë¡ í¸ì¶ëì´ ë°íë ê²ì´ì´ì¼ í©ëë¤. + </para> + <para> + ì¤íë íë¡ì¸ì¤ì ê²°ê³¼íµê³ë¥¼ ë°íí©ëë¤. + </para> + <para> + 참조<function>popen</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.popen"> + <refnamediv> + <refname>popen</refname> + <refpurpose>ì§íëë íì¼ í¬ì¸í°ë¥¼ ì´ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>popen</function> + </funcdef> + <paramdef>string <parameter>command</parameter> + </paramdef> + <paramdef>string <parameter>mode</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para>íì´í를 주ì´ì§ ëª ë ¹ì¼ë¡ ëª ë ¹ì í¬í¬í¨ì¼ë¡ ì¤íëë íë¡ì¸ì¤ë¡ ì´ì´ì¤ëë¤. + </para> + <para> + <function>fopen</function>ì ìí´ ë°íëë íì¼ í¬ì¸í°ì ê°ì§ë§, ë¨ë°©í¥(ì½ê¸°ë ì°ê¸° ëì¤ì íëë§ ì¬ì©í ì ìë)ì´ê³ + <function>pclose</function>ë¡ ë«íì¼ë§ íë¤ë ì ì´ ë¤ë¦ ëë¤. ì´ í¬ì¸í°ë <function>fgets</function>, <function>fgetss</function>, + <function>fputs</function>ê³¼ í¨ê» ì¬ì©í ì ììµëë¤. + </para> + <para> + ìë¬ê° ë°ìíë©´ false를 ë°íí©ëë¤. + </para> + <para> + <informalexample> + <programlisting role="php"> $fp = popen ("/bin/ls", "r"); </programlisting> - </informalexample> - </para> - <para> - See also <function>pclose</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.readfile"> - <refnamediv> - <refname>readfile</refname> - <refpurpose>Outputs a file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>readfile</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>int + </informalexample> + </para> + <para> + 참조<function>pclose</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.readfile"> + <refnamediv> + <refname>readfile</refname> + <refpurpose>íì¼ì ì¶ë ¥í©ëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>readfile</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>int <parameter> - <optional>use_include_path</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <para> - Reads a file and writes it to standard output. - </para> - <para> - Returns the number of bytes read from the file. If an error - occurs, false is returned and unless the function was called as - @readfile, an error message is printed. - </para> - <para> - If <parameter>filename</parameter> begins with "http://" - (not case sensitive), an HTTP 1.0 connection is opened to the - specified server and the text of the response is written to - standard output. - </para> - <para> - Does not handle HTTP redirects, so you must include trailing - slashes on directories. - </para> - <para> - If <parameter>filename</parameter> begins with "ftp://" - (not case sensitive), an ftp connection to the specified server is - opened and the requested file is written to standard output. If the server - does not support passive mode ftp, this will fail. - </para> - <para> - If <parameter>filename</parameter> begins with neither - of these strings, the file will be opened from the filesystem and - its contents written to standard output. - </para> - <para> - You can use the optional second parameter and set it to "1", if - you want to search for the file in the <link - linkend="ini.include-path">include_path</link>, too. - </para> - <para> - See also <function>fpassthru</function>, - <function>file</function>, <function>fopen</function>, - <function>include</function>, <function>require</function>, and - <function>virtual</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.readlink"> - <refnamediv> - <refname>readlink</refname> - <refpurpose>Returns the target of a symbolic link</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>readlink</function></funcdef> - <paramdef>string <parameter>path</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>Readlink</function> does the same as the readlink C - function and returns the contents of the symbolic link path or 0 - in case of error. - </para> - <para> - See also <function>symlink</function>, - <function>readlink</function> and - <function>linkinfo</function>. - </para> - <note> - <simpara> - This function does not work on Windows systems - </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.rename"> - <refnamediv> - <refname>rename</refname> - <refpurpose>Renames a file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>rename</function></funcdef> - <paramdef>string <parameter>oldname</parameter></paramdef> - <paramdef>string <parameter>newname</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Attempts to rename <parameter>oldname</parameter> to - <parameter>newname</parameter>. - </para> - <para> - Returns true on success and false on failure. + <optional>use_include_path</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼ì ì½ì´ì ì¼ë°ì¶ë ¥ì¼ë¡ ë´ë³´ë ëë¤. + </para> + <para> + íì¼ìì ì½ì ë°ì´í¸ì를 ë°íí©ëë¤. ìë¬ê° ë°ìíë©´ + false를 ë°ííê³ í¨ìê° @readfileë¡ ë°íëì§ ìë í ìë¬ ë©ìì§ê° íë¦°í¸ ë©ëë¤ + </para> + <para> + <parameter>filename</parameter>ì´ "http://"ë¡ ììì´ ëë©´ (ìëë°ìì´ ìë ê²½ì°ì), HTTP 1.0 ì ì§ì ë ìë²ë¡ ì°ê²°ì´ ë©ëë¤. ìëµë í ì¤í¸ë íì¤ ì¶ë ¥ì¼ë¡ ì°ì¬ì§ëë¤. + </para> + <para> + ëë í 리ì ì¬ëì¬ë¥¼ í¬í¨ìì¼ì HTTPê° ë¦¬ë¤ì´ë í¸ ëì§ ìëë¡ íì¸ì. + </para> + <para> + <parameter>filename</parameter>ì´ "ftp://"ë¡ ììì´ ëë©´ (ìëë°ìì´ ìë ê²½ì°ì), ftpë ì§ì ë ìë²ë¡ ì°ê²°ì´ ëê³ ìì²ë íì¼ì íì¤ ì¶ë ¥ì¼ë¡ ì°ì¬ì§ëë¤. ìë²ê° Passive 모ë를 ì§ìíì§ ìì¼ë©´ ì´ê²ì ì¤íë ì ììµëë¤. </para> - </refsect1> - </refentry> - - <refentry id="function.rewind"> - <refnamediv> - <refname>rewind</refname> - <refpurpose>Rewind the position of a file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>rewind</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Sets the file position indicator for fp to the beginning of the - file stream.</para> <para> If an error occurs, returns 0.</para> - <para> The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function>. - </para> - <para> - See also <function>fseek</function> and - <function>ftell</function>. + <para> + <parameter>filename</parameter>ì´ ì´ì ê°ì 문ìì´ë¡ ììì´ ëì§ ìëë¤ë©´ íì¼ì´ íì¼ ìì¤í ìì ì´ë¦¬ê³ ë´ì©ì íì¤ ì¶ë ¥ì¼ë¡ ì°ì¬ì§ëë¤. </para> - </refsect1> - </refentry> - - - <refentry id="function.rmdir"> - <refnamediv> - <refname>rmdir</refname> - <refpurpose>Removes directory</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>rmdir</function></funcdef> - <paramdef>string <parameter>dirname</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Attempts to remove the directory named by pathname. The directory - must be empty, and the relevant permissions must permit. - this. - </para> - <para> - If an error occurs, returns 0. + <para> + <link linkend="ini.include-path">include_path</link>ìì íì¼ì ì°¾ê³ ì¶ì¼ë©´ ëë²ì§¸ 매ê°ë³ì를 "1"ë¡ ì¤ì í ì ë ììµëë¤. </para> - <para> - See also <function>mkdir</function>. + <para> + 참조<function>fpassthru</function>, + <function>file</function>, <function>fopen</function>, + <function>include</function>, <function>require</function>, <function>virtual</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.stat"> - <refnamediv> - <refname>stat</refname> - <refpurpose>Gives information about a file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>stat</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Gathers the statistics of the file named by filename.</para> - <para> - Returns an array with the statistics of the file with the - following elements: + </refsect1> + </refentry> + <refentry id="function.readlink"> + <refnamediv> + <refname>readlink</refname> + <refpurpose>symbolic linkì target ë°í</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>readlink</function> + </funcdef> + <paramdef>string <parameter>path</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>Readlink</function>ë Cììì readlink í¨ìì ê°ì ì¼ì ìíí©ëë¤. symbolic linkì ê²½ë¡ë¥¼ ë°ííê±°ë ì¤í¨ì 0 ì ë°íí©ëë¤. + </para> + <para> + 참조<function>symlink</function>, + <function>readlink</function> ê·¸ë¦¬ê³ <function>linkinfo</function>. + </para> + <note> + <simpara> + ìëì°ì¦ìì ëìíì§ ììµëë¤.</simpara> + </note> + </refsect1> + </refentry> + <refentry id="function.rename"> + <refnamediv> + <refname>rename</refname> + <refpurpose>íì¼ì ì ì´ë¦ì¼ë¡ ê³ ì¹ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>rename</function> + </funcdef> + <paramdef>string <parameter>oldname</parameter> + </paramdef> + <paramdef>string <parameter>newname</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <parameter>oldname</parameter>ì <parameter>newname</parameter>ì¼ë¡ ë¤ì ì´ë¦ ë¶ì´ê³ ì í ë. + </para> + <para> + ì±ê³µíë©´ true, ì¤í¨íë©´ false를 ë°íí©ëë¤. + </para> + </refsect1> + </refentry> + <refentry id="function.rewind"> + <refnamediv> + <refname>rewind</refname> + <refpurpose>íì¼í¬ì¸í°ì ìì¹ë¥¼ ëë립ëë¤(rewind).</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>rewind</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + fpì íì¼ ìì¹ ì¸¡ì ì를 íì¼ ì¤í¸ë¦¼ì ììë¶ë¶ì ìì¹íëë¡ ì¤ì í©ëë¤.</para> + <para>ìë¬ê° ë°ìíë©´ 0ì ë°íí©ëë¤.</para> + <para>íì¼ í¬ì¸í°ë ì í¨í ê²ì´ì´ì¼ íê³ <function>fopen</function>ì ìí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì ê°ë¦¬ì¼ì¼ í©ëë¤. + </para> + <para> + 참조<function>fseek</function>ê·¸ë¦¬ê³ <function>ftell</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.rmdir"> + <refnamediv> + <refname>rmdir</refname> + <refpurpose>ëë í 리 ì ê±°í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>rmdir</function> + </funcdef> + <paramdef>string <parameter>dirname</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + pathnameì ìí´ ì´ë¦ì´ ë¶ì ëë í 리를 ì ê±°íë ¤ê³ í ë ëë í 리ë ë¹ì´ ìì´ì¼ íê³ ê´ë ¨ í¼ë¯¸ì ì ì´ê²ì´ ì¤íë ì ìëë¡ íê° ëì´ ìì´ì¼ í©ëë¤ . + </para> + <para> + ìë¬ê° ë°ìíë©´ 0ì ë°íí©ëë¤. + </para> + <para> + 참조: <function>mkdir</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.stat"> + <refnamediv> + <refname>stat</refname> + <refpurpose>fileì ëí ì ë³´ ì ê³µ</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>stat</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filenameì ìí´ ì´ë¦ì´ ë¶ì íì¼ì ëí íµê³ìë£ ëª¨ì¼ê¸°.</para> + <para> + ë¤ìì ììëë¡ íì¼ì ëí íµê³ë¥¼ ë°°ì´ë¡ ë°íí©ëë¤.: <orderedlist> - <listitem><simpara>device</simpara></listitem> - <listitem><simpara>inode</simpara></listitem> - <listitem><simpara>inode protection mode</simpara></listitem> - <listitem><simpara>number of links</simpara></listitem> - <listitem><simpara>user id of owner</simpara></listitem> - <listitem><simpara>group id owner</simpara></listitem> - <listitem><simpara>device type if inode device *</simpara></listitem> - <listitem><simpara>size in bytes</simpara></listitem> - <listitem><simpara>time of last access</simpara></listitem> - <listitem><simpara>time of last modification</simpara></listitem> - <listitem><simpara>time of last change</simpara></listitem> - <listitem><simpara>blocksize for filesystem I/O *</simpara></listitem> - <listitem><simpara>number of blocks allocated</simpara></listitem> - </orderedlist> - * - only valid on systems supporting the st_blksize type--other - systems (i.e. Windows) return -1</para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - </refsect1> - </refentry> - - <refentry id="function.lstat"> - <refnamediv> - <refname>lstat</refname> - <refpurpose> - Gives information about a file or symbolic link - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>lstat</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> + <listitem> + <simpara>ì¥ì¹(device)</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë(inode)</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë ë³´í¸ ëª¨ë(inode protection mode)</simpara> + </listitem> + <listitem> + <simpara>ë§í¬ì ê°¯ì</simpara> + </listitem> + <listitem> + <simpara>ìì ìì ì¬ì©ì ìì´ë</simpara> + </listitem> + <listitem> + <simpara>ìì ìì 그룹 ìì´ë</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë ì¥ì¹(inode device)ì´ë©´ ì¥ì¹ íì (device type) *</simpara> + </listitem> + <listitem> + <simpara>ë°ì´í¸ ë¨ì í¬ê¸°</simpara> + </listitem> + <listitem> + <simpara>ìµì¢ ì ì ìê°</simpara> + </listitem> + <listitem> + <simpara>ìµì¢ ìì ìê°</simpara> + </listitem> + <listitem> + <simpara>ìµì¢ ë³ê²½ ìê°</simpara> + </listitem> + <listitem> + <simpara>íì¼ìì¤í ì ì¶ë ¥(filesystem I/O)ìì ë¸ë¡í¬ê¸° *</simpara> + </listitem> + <listitem> + <simpara>í ë¹ë ë¸ë¡ì ì</simpara> + </listitem> + </orderedlist> + * - st_blksize typeì ì§ìíë ìì¤í ìë§ ì í¨í©ëë¤--ë¤ë¥¸ ìì¤í (ì를 ë¤ì´ ìëì°ì¦ ê°ì)ììë -1 ì ë°íí©ëë¤</para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ë¤ë©´ <function>clearstatcache</function>ì ë³´ììì¤. + </para> + </refsect1> + </refentry> + <refentry id="function.lstat"> + <refnamediv> + <refname>lstat</refname> + <refpurpose> + íì¼ì´ë ì¬ë³¼ë¦ ë§í¬ì ê´í ì 보를 ì ê³µ </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>lstat</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> Gathers the statistics of the file or symbolic link named by - filename. This function is identical to the - <function>stat</function> function except that if the - <parameter>filename</parameter> parameter is a symbolic link, the - status of the symbolic link is returned, not the status of the - file pointed to by the symbolic link. - </para> - <para> - Returns an array with the statistics of the file with the - following elements: - <orderedlist> - <listitem><simpara>device</simpara></listitem> - <listitem><simpara>inode</simpara></listitem> - <listitem><simpara>inode protection mode</simpara></listitem> - <listitem><simpara>number of links</simpara></listitem> - <listitem><simpara>user id of owner</simpara></listitem> - <listitem><simpara>group id owner</simpara></listitem> - <listitem><simpara>device type if inode device *</simpara></listitem> - <listitem><simpara>size in bytes</simpara></listitem> - <listitem><simpara>time of last access</simpara></listitem> - <listitem><simpara>time of last modification</simpara></listitem> - <listitem><simpara>time of last change</simpara></listitem> - <listitem><simpara>blocksize for filesystem I/O *</simpara></listitem> - <listitem><simpara>number of blocks allocated</simpara></listitem> - </orderedlist> - * - only valid on systems supporting the st_blksize type--other - systems (i.e. Windows) return -1</para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. + filenameì ìí´ ì´ë¦ì´ ë¶ì íì¼ì´ë ì¬ë³¼ë¦ ë§í¬ì ê´í íµê³ìë£ë¥¼ 모ìëë¤. ì´ í¨ìë <parameter>filename</parameter>매ê°ë³ìê° ì¬ë³¼ë¦ ë§í¬ë©´ ì¬ë³¼ë¦ ë§í¬ê° ê°ë¦¬í¤ë íì¼ì ìíê° ìëë¼ ì¬ë³¼ë¦ ë§í¬ì ìíê° ë°íëë ê²ì ì ì¸íë©´ <function>stat</function>í¨ìì ê°ìµëë¤. </para> - </refsect1> - </refentry> - - <refentry id="function.realpath"> - <refnamediv> - <refname>realpath</refname> - <refpurpose>Returns canonicalized absolute pathname</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>realpath</function></funcdef> - <paramdef>string <parameter>path</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>realpath</function> expands all symbolic links and - resolves references to '/./', '/../' and extra '/' characters in - the input <parameter>path</parameter> and return the canonicalized - absolute pathname. The resulting path will have no symbolic link, - '/./' or '/../' components. - </para> - <para> - <example> - <title><function>realpath</function> example</title> - <programlisting role="php"> + <para> + íì¼ì íµê³ìë£ê° ìëì ê°ì ììë¤ë¡ ë°°ì´ë¡ ë°íë©ëë¤: + <orderedlist> + <listitem> + <simpara>ì¥ì¹(device)</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë(inode)</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë ë³´í¸ ëª¨ë(inode protection mode)</simpara> + </listitem> + <listitem> + <simpara>ë§í¬ì ê°¯ì</simpara> + </listitem> + <listitem> + <simpara>ìì ìì ì¬ì©ì ìì´ë</simpara> + </listitem> + <listitem> + <simpara>ìì ìì 그룹 ìì´ë</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë ì¥ì¹(inode device)ë¼ë©´ ì¥ì¹ì íì (device type) *</simpara> + </listitem> + <listitem> + <simpara>ë°ì´í¸ë¨ìì í¬ê¸°</simpara> + </listitem> + <listitem> + <simpara>ìµì¢ ì ì ìê°</simpara> + </listitem> + <listitem> + <simpara>ìµì¢ ìì ìê°</simpara> + </listitem> + <listitem> + <simpara>ìµì¢ ë³ê²½ ìê°</simpara> + </listitem> + <listitem> + <simpara>íì¼ìì¤í ì ì¶ë ¥(filesystem I/O)ìì ë¸ë¡ í¬ê¸° *</simpara> + </listitem> + <listitem> + <simpara>í ë¹ë ë¸ë¡ì ì</simpara> + </listitem> + </orderedlist> + * - st_blksize typeì ì§ìíë ìì¤í ìë§ ì í¨í©ëë¤ -- ë¤ë¥¸ ìì¤í ë¤(ì를 ë¤ì´ ìëì°ì¦ ê°ì) ìì¤í ììë -1 ì ë°íí©ëë¤.</para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ë¤ë©´ <function>clearstatcache</function>ì ë³´ììì¤. </para> + </refsect1> + </refentry> + <refentry id="function.realpath"> + <refnamediv> + <refname>realpath</refname> + <refpurpose>íì¤íë ì ë ê²½ë¡ëª ì ë°íí©ëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>realpath</function> + </funcdef> + <paramdef>string <parameter>path</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>realpath</function>ë <parameter>path</parameter>ë¡ ì ë ¥ë ê²½ë¡ìì 모ë ì¬ë³¼ë¦ ë§í¬ì '/./', '/../'ë¡ ì°¸ì¡°ë ê²½ë¡ ê·¸ë¦¬ê³ ê·¸ ì¸ì '/' ì íì¥í´ì íì¤íë ì ë ê²½ë¡ëª ì ë°íí©ëë¤. ì´ë ê² í´ì ëì¨ ê²½ë¡ëª ì ì¬ë³¼ë¦ ì¼í¬ì '/./' ëë '/../' ë±ì í¬í¨íê³ ìì§ ììµëë¤. </para> + <para> + <example> + <title> + <function>realpath</function>ì문</title> + <programlisting role="php"> $real_path = realpath ("../../index.php"); </programlisting> - </example> + </example> + </para> + </refsect1> + </refentry> + <refentry id="function.symlink"> + <refnamediv> + <refname>symlink</refname> + <refpurpose>ì¬ë³¼ë¦ ë§í¬ ë§ë¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>symlink</function> + </funcdef> + <paramdef>string <parameter>target</parameter> + </paramdef> + <paramdef>string <parameter>link</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>symlink</function>ë í¹ì í ì´ë¦ì <parameter>link</parameter>ë¡ ìë <parameter>target</parameter>ìì ì¬ë³¼ë¦ ë§í¬ë¥¼ ë§ëëë¤. + </para> + <para> + 참조 íëë§í¬ë¥¼ ë§ëë<function>link</function>, + ê·¸ë¦¬ê³ <function>linkinfo</function>ì ê°ì´ ìë<function>readlink</function>. + </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> + </note> + </refsect1> + </refentry> + <refentry id="function.tempnam"> + <refnamediv> + <refname>tempnam</refname> + <refpurpose>ì ì¼í íì¼ ì´ë¦ ë§ë¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>tempnam</function> + </funcdef> + <paramdef>string <parameter>dir</parameter> + </paramdef> + <paramdef>string <parameter>prefix</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + í¹ì ëë í 리ìì ì ì¼í ìì íì¼ì´ë¦ì ë§ëëë¤. + ëë í ë¦¬ê° ì¡´ì¬íì§ ìì¼ë©´ <function>tempnam</function>ì ìì¤í ì ìì ëë í 리ìì íì¼ ì´ë¦ì ë§ëëë¤. + </para> + <para> + <function>tempnam</function>í¨ìì íë ì¼ì ìì¤í ìì¡´ì ì ëë¤. ìëì°ì¦ìì TMP íê²½ë³ìë <parameter>dir</parameter>매ê°ë³ì를 ë°ì´ëê³ , 리ë ì¤ìì + TMPDIR íê²½ë³ìê° ì¡´ì¬íê³ ìë ê²ì ê°ë¦¬í¤ê³ ìë¤ë©´ SVR4ê° íì <parameter>dir</parameter> 매ê°ë³ì를 ì¬ì©íë ¤ê³ íë ëìì ììì TMPDIR íê²½ë³ìê° ì¤íë©ëë¤. 미ì¬ì©ì ë¶ë¶ì´ ìë¤ë©´ tempnam(3) í¨ìë¶ë¶ì ìì¤í 문ì를 ì°¸ê³ íììì¤. </para> - </refsect1> - </refentry> - - <refentry id="function.symlink"> - <refnamediv> - <refname>symlink</refname> - <refpurpose>Creates a symbolic link</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>symlink</function></funcdef> - <paramdef>string <parameter>target</parameter></paramdef> - <paramdef>string <parameter>link</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>symlink</function> creates a symbolic link - from the existing <parameter>target</parameter> with - the specified name <parameter>link</parameter>. - </para> - <para> - See also <function>link</function> to create hard links, - and <function>readlink</function> along with - <function>linkinfo</function>. - </para> - <note> - <simpara> - This function does not work on Windows systems. - </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.tempnam"> - <refnamediv> - <refname>tempnam</refname> - <refpurpose>Creates unique file name</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>tempnam</function></funcdef> - <paramdef>string <parameter>dir</parameter></paramdef> - <paramdef>string <parameter>prefix</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Creates a unique temporary filename in the specified directory. - If the directory does not exist, <function>tempnam</function> may - generate a filename in the system's temporary directory. - </para> - <para> - The behaviour of the <function>tempnam</function> function is - system dependent. On Windows the TMP environment variable will - override the <parameter>dir</parameter> parameter, on Linux the - TMPDIR environment variable has precedence, while SVR4 will always - use your <parameter>dir</parameter> parameter if the directory it - points to exists. Consult your system documentation on the - tempnam(3) function if in doubt. - </para> - <para> - Returns the new temporary filename, or the null string on - failure. + <para> + ìë¡ì´ ìì íì¼ì´ë¦ì´ë ë 문ìì´ì ë°íí©ëë¤. <example> - <title><function>Tempnam</function> example</title> - <programlisting role="php"> + <title> + <function>Tempnam</function>ì문</title> + <programlisting role="php"> $tmpfname = tempnam ("/tmp", "FOO"); </programlisting> - </example> - </para> - <note> - <simpara> - This function's behavior changed in 4.0.3. The temporary file is also - created to avoid a race condition where the file might appear in the - filesystem between the time the string was generated and before the - the script gets around to creating the file. + </example> + </para> + <note> + <simpara> + ì´ í¨ìë 4.0.3ìì ëìì´ ë³ê²½ëììµë. ìì íì¼ì 문ìì´ì´ ë§ë¤ì´ì§ê³ ê·¸ 문ìì´ì´ íì¼ì ìì±íë ¤ê³ íë ì¤ê°ì íì¼ì´ íì¼ ìì¤í ì ë³´ì¬ì ¸ì¼ íë ìì¹ìì ì§íìí를 ëíë´ì§ ììµëë¤. </simpara> - </note> - <para> - See also <function>tmpfile</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.tmpfile"> - <refnamediv> - <refname>tmpfile</refname> - <refpurpose>Creates a temporary file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>tmpfile</function></funcdef> - <paramdef>void</paramdef> - </funcprototype> - </funcsynopsis> - <para> + </note> + <para> + 참조 <function>tmpfile</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.tmpfile"> + <refnamediv> + <refname>tmpfile</refname> + <refpurpose>ìì íì¼ ë§ë¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>tmpfile</function> + </funcdef> + <paramdef>void</paramdef> + </funcprototype> + </funcsynopsis> + <para> Creates a temporary file with an unique name in write mode, returning a file handle similar to the one returned by - <function>fopen</function>. - The file is automatically removed when closed (using - <function>fclose</function>), or when the script ends. - </para> - <para> - For details, consult your system documentation on the - <literal>tmpfile(3)</literal> function, as well as the - <filename>stdio.h</filename> header file. + <function>fopen</function>ì ìí´ ë°íëê²ê³¼ ë¹ì·í íì¼í¸ë¤ì ë°ííë©° ì°ê¸°ëª¨ëìì ì ì¼í ììíì¼ì ìì±í©ëë¤. + ì´ íì¼ì ì¤í¬ë¦½í¸ê° ì¢ ë£ëê±°ë ë«íìë (<function>fclose</function>ì ì¬ì©í©ëë¤) ìëì¼ë¡ ì ê±°ë©ëë¤. </para> - <para> - See also <function>tempnam</function>. + <para> + ìì¸í ììë³´ë ¤ë©´ <filename>stdio.h</filename> í¤ëíì¼ ê°ì <literal>tmpfile(3)</literal>í¨ìì ìì¤í 문ì를 ì´í´ ë³´ììì¤ </para> - </refsect1> - </refentry> - - - <refentry id="function.touch"> - <refnamediv> - <refname>touch</refname> - <refpurpose>Sets modification time of file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>touch</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>int + <para> + 참조 <function>tempnam</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.touch"> + <refnamediv> + <refname>touch</refname> + <refpurpose>íì¼ì ìì ìê°ì ì¤ì í©ëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>touch</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>int <parameter> - <optional>time</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <para> - Attempts to set the modification time of the file named by - filename to the value given by time. If the option time is not - given, uses the present time. + <optional>time</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filename ì ìí´ ì´ë¦ë¶ì¬ì§ fileì ìì ìê°ì 주ì´ì§ ìê°ì¼ë¡ ì¤ì íë ¤ê³ í ë ì¬ì©í©ëë¤. ìê°ì ìµì ì¼ë¡ ì¤ì íì§ ìì¼ë©´ íì¬ ìê°ì ì¬ì©í©ëë¤. </para> - <para> - If the file does not exist, it is created. + <para> + íì¼ì´ ì¡´ì¬íì§ ìì¼ë©´ íì¼ì ë§ëëë¤. </para> - <para> - Returns true on success and false otherwise. + <para> + ì±ê³µíë©´ true 를 ë°ííê³ ê·¸ë ì§ ìì¼ë©´ false를 ë°íí©ëë¤. <example> - <title><function>Touch</function> example</title> - <programlisting role="php"> + <title> + <function>Touch</function>ì문</title> + <programlisting role="php"> if (touch ($FileName)) { - print "$FileName modification time has been - changed to todays date and time"; + print "$FileName ì ì¤ë ë ì§ì ìê°ì¼ë¡ ë³ê²½ëììµëë¤."; } else { - print "Sorry Could Not change modification time of $FileName"; + print "ì£ì¡í©ëë¤. $FileNameì ìì ìê°ì ë°ê¾¸ì§ 못íìµëë¤."; } </programlisting> - </example> - </para> - </refsect1> - </refentry> - - <refentry id="function.umask"> - <refnamediv> - <refname>umask</refname> - <refpurpose>Changes the current umask</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>umask</function></funcdef> - <paramdef>int <parameter>mask</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>Umask</function> sets PHP's umask to mask & 0777 and - returns the old umask. When PHP is being used as a server module, - the umask is restored when each request is finished. - </para> - <para> - <function>Umask</function> without arguments simply returns the - current umask. - </para> - <note> - <simpara> - This function may not work on Windows systems. + </example> + </para> + </refsect1> + </refentry> + <refentry id="function.umask"> + <refnamediv> + <refname>umask</refname> + <refpurpose>íì¬ì umask를 ë³ê²½í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>umask</function> + </funcdef> + <paramdef>int <parameter>mask</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>Umask</function>ë PHPì umask를 mask & 0777ë¡ ë°ê¾¸ê³ ì´ì ì umask를 ë°íí©ëë¤. PHPê° ìë² ëª¨ëë¡ ì¬ì©ë ë umaskë 매 ìì²(request)ê° ëë ë ë§ë¤ ì ì¥ì´ ë©ëë¤. + </para> + <para> + ì¸ìê° ìë <function>Umask</function>ë ë¨ìí íì¬ì umask를 ë°íí©ëë¤. + </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.unlink"> - <refnamediv> - <refname>unlink</refname> - <refpurpose>Deletes a file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>unlink</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Deletes <parameter>filename</parameter>. Similar to the Unix C - unlink() function. - </para> - <para> - Returns 0 or FALSE on an error. - </para> - <para> - See also <function>rmdir</function> for removing directories. - </para> - <note> - <simpara> - This function may not work on Windows systems. + </note> + </refsect1> + </refentry> + <refentry id="function.unlink"> + <refnamediv> + <refname>unlink</refname> + <refpurpose>íì¼ì ìì í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>unlink</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <parameter>filename</parameter>ì ìì í©ëë¤. Unix Cì unlink() í¨ìì ë¹ì·í©ëë¤. + </para> + <para> + 0 ì´ë FALSE를 ë°íí©ëë¤. + </para> + <para> + 참조 ëë í 리를 ì ê±°íëë° <function>rmdir</function> + </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - </reference> - + </note> + </refsect1> + </refentry> +</reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -2586,4 +2484,4 @@ sgml-local-catalogs:nil sgml-local-ecat-files:nil End: ---> +--> \ No newline at end of file
Index: phpdoc/kr/functions/filesystem.xml diff -u phpdoc/kr/functions/filesystem.xml:1.2 phpdoc/kr/functions/filesystem.xml:1.3 --- phpdoc/kr/functions/filesystem.xml:1.2 Fri Jan 12 06:16:39 2001 +++ phpdoc/kr/functions/filesystem.xml Mon Jan 29 22:56:04 2001 @@ -1,191 +1,175 @@ - <reference id="ref.filesystem"> - <title>Filesystem functions</title> - <titleabbrev>Filesystem</titleabbrev> - - <refentry id="function.basename"> - <refnamediv> - <refname>basename</refname> - <refpurpose> - Returns filename component of path +<reference id="ref.filesystem"> + <title>Filesystem functions</title> + <titleabbrev>Filesystem</titleabbrev> + <refentry id="function.basename"> + <refnamediv> + <refname>basename</refname> + <refpurpose> + ê²½ë¡ëª ìì íì¼ì´ë¦ë§ ë°íí©ëë¤ </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>basename</function></funcdef> - <paramdef>string <parameter>path</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Given a string containing a path to a file, this function will - return the base name of the file. - </para> - <para> - On Windows, both slash (<literal>/</literal>) and backslash - (<literal>\</literal>) are used as path separator character. In - other environments, it is the forward slash - (<literal>/</literal>). - </para> - <para> - <example> - <title><function>basename</function> example</title> - <programlisting role="php"> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>basename</function> + </funcdef> + <paramdef>string <parameter>path</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + ì´ í¨ìë ê²½ë¡ê° í¬í¨ë íì¼ì´ë¦ì´ 주ì´ì¡ìë íì¼ì ì´ë¦ë¶ë¶ë§ ë°íí©ëë¤ + </para> + <para> + ìëì°ì¦ììë ì¬ëì¬ì (<literal>/</literal>) ë°±ì¬ëì¬(<literal>\</literal>) 모ë ê²½ë¡êµ¬ë¶ìë¡ ì¬ì©ë©ëë¤. ê·¸ ì¸ì íê²½ììë ì¬ëì¬(<literal>/</literal>)ë§ ì¬ì©ë©ëë¤ + . + </para> + <para> + <example> + <title> + <function>basename</function> ì문</title> + <programlisting role="php"> $path = "/home/httpd/html/index.php3"; -$file = basename ($path); // $file is set to "index.php3" +$file = basename ($path); // $file ì "index.php3" ë¡ ì¤ì ë©ëë¤. </programlisting> - </example> - </para> - <para> - See also: <function>dirname</function> - </para> - </refsect1> - </refentry> - - <refentry id="function.chgrp"> - <refnamediv> - <refname>chgrp</refname> - <refpurpose>Changes file group</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>chgrp</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>mixed <parameter>group</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Attempts to change the group of the file - <parameter>filename</parameter> to - <parameter>group</parameter>. Only the superuser may change the - group of a file arbitrarily; other users may change the group of - a file to any group of which that user is a member. - </para> - <para> - Returns true on success; otherwise returns false. - </para> - <para> - See also <function>chown</function> and - <function>chmod</function>. - </para> - <note> - <simpara> - This function does not work on Windows systems + </example> + </para> + <para> + 참조: <function>dirname</function> + </para> + </refsect1> + </refentry> + <refentry id="function.chgrp"> + <refnamediv> + <refname>chgrp</refname> + <refpurpose>íì¼ì 그룹ì ë³íí©ëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>chgrp</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>mixed <parameter>group</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +íì¼ì 그룹ì <parameter>filename</parameter>ìì <parameter>group</parameter>ì¼ë¡ ë°ê¾¸ê³ ì í ë ìí¼ì ì ë§ì´ íì¼ì 그룹ì ìì¼ë¡ ë³ê²½í ì ìê³ ê·¸ ì¸ì ì¬ì©ìë¤ì 멤ë²ë¡ ììëë§ ì´ë¤ íì¼ì 그룹ì ë³ê²½í ì ììµëë¤. + </para> + <para> +ì±ê³µíë©´ true, ì¤í¨íë©´ false를 ë°íí©ëë¤. + </para> + <para> + 참조: <function>chown</function> ê·¸ë¦¬ê³ <function>chmod</function>. + </para> + <note> + <simpara> +ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.chmod"> - <refnamediv> - <refname>chmod</refname> - <refpurpose>Changes file mode</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>chmod</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>int <parameter>mode</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Attempts to change the mode of the file specified by - <parameter>filename</parameter> to that given in - <parameter>mode</parameter>. - </para> - <para> - Note that <parameter>mode</parameter> is not automatically - assumed to be an octal value, so strings (such as "g+w") will - not work properly. To ensure the expected operation, - you need to prefix <parameter>mode</parameter> with a zero (0): - <informalexample> - <programlisting role="php"> -chmod ("/somedir/somefile", 755); // decimal; probably incorrect -chmod ("/somedir/somefile", "u+rwx,go+rx"); // string; incorrect -chmod ("/somedir/somefile", 0755); // octal; correct value of mode + </note> + </refsect1> + </refentry> + <refentry id="function.chmod"> + <refnamediv> + <refname>chmod</refname> + <refpurpose>íì¼ì 모ë ë³ê²½</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>chmod</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>int <parameter>mode</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <parameter>filename</parameter>ì ì ìë íì¼ì 모ë를 주ì´ì§ <parameter>mode</parameter>ë¡ ë³ê²½íê³ ì í ë ì¬ì©í©ëë¤. + </para> + <para> +주ìí ì ì <parameter>mode</parameter>ê° ìëì¼ë¡ 8ì§ìë¡ ë°ëì§ ìëë¤ë ê²ì ëë¤. ê·¸ëì ë§ì½ì 문ìì´("g+w")를 ì¬ì©íë¤ë©´ ì ííê² ëìíì§ ìì ì ììµëë¤. ê·¸ëì íì¤í ëìíë 구문ì ì¬ì©íë ¤ë©´ 0ì ì´ì©í´ì <parameter>mode</parameter>ì íí를 미리 ì ìí´ ì£¼ì´ì¼ í©ëë¤: + <informalexample> + <programlisting role="php"> +chmod ("/somedir/somefile", 755); // 10ì§ì : ì ííê² ëìíì§ ìì ê²ì +chmod ("/somedir/somefile", "u+rwx,go+rx"); // 문ìì´ : ì못ë 구문 +chmod ("/somedir/somefile", 0755); // 8ì§ì : ì íí 모ë ê° </programlisting> - </informalexample> - </para> - <para> - Returns true on success and false otherwise. - </para> - <para> - See also <function>chown</function> and - <function>chgrp</function>. - </para> - <note> - <simpara> - This function does not work on Windows systems + </informalexample> + </para> + <para> +ì±ê³µíë©´ true, ì¤í¨íë©´ false를 ë°íí©ëë¤. </para> + <para> + 참조: <function>chown</function> ê·¸ë¦¬ê³ <function>chgrp</function>. + </para> + <note> + <simpara> +ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.chown"> - <refnamediv> - <refname>chown</refname> - <refpurpose>Changes file owner</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>chown</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>mixed <parameter>user</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Attempts to change the owner of the file filename to user - user. Only the superuser may change the owner of a file. - </para> - <para> - Returns true on success; otherwise returns false. - </para> - <para> - See also <function>chown</function> and - <function>chmod</function>. - </para> - <note> - <simpara> - This function does not work on Windows systems + </note> + </refsect1> + </refentry> + <refentry id="function.chown"> + <refnamediv> + <refname>chown</refname> + <refpurpose>íì¼ì ìì ì ë³ê²½</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>chown</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>mixed <parameter>user</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + ì´ë¤ íì¼ì ìì ì를 ë³ê²½íê³ ì í ë ìí¼ì ì ë§ì´ íì¼ì ìì ì를 ë°ê¿ ì ììµëë¤. + </para> + <para> + ì±ê³µíë©´ true, ê·¸ë ì§ ìì¼ë©´ false를 ë°íí©ëë¤. + </para> + <para> + 참조: <function>chown</function> ê·¸ë¦¬ê³ <function>chmod</function>. + </para> + <note> + <simpara> +ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.clearstatcache"> - <refnamediv> - <refname>clearstatcache</refname> - <refpurpose>Clears file stat cache</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>clearstatcache</function></funcdef> - <void/> - </funcprototype> - </funcsynopsis> - <para> - Invoking the <systemitem>stat</systemitem> or - <systemitem>lstat</systemitem> system call on most systems is - quite expensive. Therefore, the result of the last call to any of - the status functions (listed below) is stored for use on the next - such call using the same filename. If you wish to force a new - status check, for instance if the file is being checked many - times and may change or disappear, use this function to clear the - results of the last call from memory. + </note> + </refsect1> + </refentry> + <refentry id="function.clearstatcache"> + <refnamediv> + <refname>clearstatcache</refname> + <refpurpose>íì¼ì íµê³(stat) ìºì를 ìì í©ëë¤.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>clearstatcache</function> + </funcdef> + <void/> + </funcprototype> + </funcsynopsis> + <para> +ëë¶ë¶ì ì´ìì²´ì ìì<systemitem>stat</systemitem>ë<systemitem>lstat</systemitem>ë±ì ìì¤í í¸ì¶ì ì¬ì©í´ì ì¼ìíë ê²ì 꽤 ììì ë§ì´ ì모í©ëë¤. ê·¸ë 기 ë문ì ìµì¢ ì ì¼ë¡ ì¬ì©ë ìí를 ëíë´ë í¨ì(ìëì ëì´ë)ì ê²°ê³¼ë ë¤ìë²ì ê°ì íì¼ì´ë¦ì ì¬ì©íì¬ ê·¸ë° í¸ì¶ì í ê²½ì°ë¥¼ ìíì¬ ì ì¥ì´ ë©ëë¤. ë§ì½ì íì¼ì´ ì¬ë¬ë² ì²´í¬ê° ëìê³ íì¼ì´ ë°ëê±°ë íì¼ì´ ìì´ì¡ì ê²½ì°ë±ì ìí를 ê°ì ë¡ ë¤ì ì²´í¬íê³ ì íë¤ë©´ ì´ í¨ì를 ì¬ì©íì¬ ì ì¥ëì´ìë ìµì¢ 결과를 ë©ëª¨ë¦¬ìì ìì í ì ììµëë¤. </para> - <para> - This value is only cached for the lifetime of a single request. + <para> +ì´ ê°ì ì´ë¤ ë¨ì¼ ìì²(request)ì´ ì í¨í ëê¹ì§ë§ ìºìë ê°ì ëë¤. </para> - <para> - Affected functions include <function>stat</function>, + <para> + <function>stat</function>ì í¬í¨íì¬ <function>lstat</function>, <function>file_exists</function>, <function>is_writable</function>, @@ -201,301 +185,277 @@ <function>filegroup</function>, <function>fileowner</function>, <function>filesize</function>, - <function>filetype</function>, and - <function>fileperms</function>. + <function>filetype</function> ê·¸ë¦¬ê³ + <function>fileperms</function>ì´ ì´ í¨ìì ìí¥ì ë°ê² ëë í¨ìì ëë¤. </para> - </refsect1> - </refentry> - - <refentry id="function.copy"> - <refnamediv> - <refname>copy</refname> - <refpurpose>Copies file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>copy</function></funcdef> - <paramdef>string <parameter>source</parameter></paramdef> - <paramdef>string <parameter>dest</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Makes a copy of a file. Returns true if the copy succeeded, - false otherwise. + </refsect1> + </refentry> + <refentry id="function.copy"> + <refnamediv> + <refname>copy</refname> + <refpurpose>íì¼ì ë³µì¬í©ëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Descriptionì¤ëª </title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>copy</function> + </funcdef> + <paramdef>string <parameter>source</parameter> + </paramdef> + <paramdef>string <parameter>dest</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +íì¼ì ë³µì¬ë³¸ì ë§ëëë¤. ë³µì¬ê° ëë©´ true, ê·¸ë ì§ ìì¼ë©´ false를 ë°íí©ëë¤. <example> - <title><function>Copy</function> example</title> - <programlisting role="php"> + <title> + <function>Copy</function>ì문</title> + <programlisting role="php"> if (!copy($file, $file.'.bak')) { - print ("failed to copy $file...<br>\n"); + print ("$fileì ë³µì¬íëë° ì¤í¨íìµëë¤...<br>\n"); } </programlisting> - </example> - </para> - <para> - See also: <function>rename</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.delete"> - <refnamediv> - <refname>delete</refname> - <refpurpose>A dummy manual entry</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>delete</function></funcdef> - <paramdef>string <parameter>file</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - This is a dummy manual entry to satisfy those people who are - looking for <function>unlink</function> or - <function>unset</function> in the wrong place. - </para> - <para> - See also: <function>unlink</function> to delete files, - <function>unset</function> to delete variables. - </para> - </refsect1> - </refentry> - - <refentry id="function.dirname"> - <refnamediv> - <refname>dirname</refname> - <refpurpose>Returns directory name component of path</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>dirname</function></funcdef> - <paramdef>string <parameter>path</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Given a string containing a path to a file, this function will - return the name of the directory.</para> - <para> - On Windows, both slash (<literal>/</literal>) and backslash - (<literal>\</literal>) are used as path separator character. In - other environments, it is the forward slash - (<literal>/</literal>).</para> - <para> - <example> - <title><function>Dirname</function> example</title> - <programlisting role="php"> + </example> + </para> + <para> + 참조: <function>rename</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.delete"> + <refnamediv> + <refname>delete</refname> + <refpurpose>ì¤ì ë¡ë ìë ëª ë ¹</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>delete</function> + </funcdef> + <paramdef>string <parameter>file</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +ì´ê²ì <function>unlink</function>ë <function>unset</function>ì í¨ì를 ì못ë ì¥ììì ì¬ëë¤ì´ ì°¾ìê¹ë´ 목ë¡ì ë¼ìë£ì ê²ì ëë¤. + </para> + <para> + 참조: <function>unlink</function>ë íì¼ì ìì íê³ ì í ë, + <function>unset</function>ë ë³ì를 ìì íê³ ì í ë. + </para> + </refsect1> + </refentry> + <refentry id="function.dirname"> + <refnamediv> + <refname>dirname</refname> + <refpurpose>ê²½ë¡ì 구ì±ììì¤ìì ëë í 리 ì´ë¦ë§ ë°íí©ëë¤.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>dirname</function> + </funcdef> + <paramdef>string <parameter>path</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +ì´ í¨ìë ì´ë¤ íì¼ì ì§ì íë ê²½ë¡ê° 주ì´ì¡ìë ëë í 리ì ì´ë¦ì ë°íí©ëë¤</para> + <para> +ìëì°ì¦ììë ì¬ëì(<literal>/</literal>) ì ìì¬ëì (<literal>\</literal>) 모ë ê²½ë¡ëª ì 구ë¶íë 구ë¶ìë¡ ì¬ì©ëì§ë§ 기íì ì´ìì²´ì ììë ì¬ëì(<literal>/</literal>)ë§ ì¬ì©ë©ëë¤. + </para> + <para> + <example> + <title> + <function>Dirname</function> ì문</title> + <programlisting role="php"> $path = "/etc/passwd"; -$file = dirname ($path); // $file is set to "/etc" +$file = dirname ($path); // $file ì "/etc" ë¡ ì¤ì ë©ëë¤. </programlisting> - </example> - </para> - <para> - See also: <function>basename</function> - </para> - </refsect1> - </refentry> - - <refentry id="function.diskfreespace"> - <refnamediv> - <refname>diskfreespace</refname> - <refpurpose>Returns available space in directory</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>float <function>diskfreespace</function></funcdef> - <paramdef>string <parameter>directory</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Given a string containing a directory, this function will return - the number of bytes available on the corresponding filesystem or - disk partition. - </para> - <para> - <example> - <title><function>diskfreespace</function> example</title> - <programlisting role="php"> -$df = diskfreespace("/"); // $df contains the number of bytes - // available on "/" + </example> + </para> + <para> + 참조: <function>basename</function> + </para> + </refsect1> + </refentry> + <refentry id="function.diskfreespace"> + <refnamediv> + <refname>diskfreespace</refname> + <refpurpose>ëë í 리ì ì¬ì©ê°ë¥í ê³µê°ì ë°íí©ëë¤.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>float <function>diskfreespace</function> + </funcdef> + <paramdef>string <parameter>directory</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +ì´ í¨ìë ëë í 리를 í¬í¨í 문ìì´ì´ 주ì´ì¡ìë íì¼ìì¤í ì´ë ëì¤í¬íí°ì ì ì¬ì©ê°ë¥í ê³µê°ì ë°ì´í¸ë¡ ë°íí©ëë¤. + </para> + <para> + <example> + <title> + <function>diskfreespace</function>ì문</title> + <programlisting role="php"> +$df = diskfreespace("/"); // $df ë "/"ìì ì¬ì©ê°ë¥í ê³µê°ì ë°ì´í¸ í¬ê¸°ë¥¼ ë³´ì¬ì¤ëë¤. </programlisting> - </example> - </para> - </refsect1> - </refentry> - - <refentry id="function.fclose"> - <refnamediv> - <refname>fclose</refname> - <refpurpose>Closes an open file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fclose</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - The file pointed to by fp is closed. - </para> - <para> - Returns true on success and false on failure. - </para> - <para> - The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function> or - <function>fsockopen</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.feof"> - <refnamediv> - <refname>feof</refname> - <refpurpose>Tests for end-of-file on a file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>feof</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns true if the file pointer is at EOF or an error occurs; - otherwise returns false. - </para> - <para> - The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function>, - <function>popen</function>, or <function>fsockopen</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.fflush"> - <refnamediv> - <refname>fflush</refname> - <refpurpose>Flushes the output to a file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fflush</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - This function forces a write of all buffered output to the - to the resource pointed to by the file handle - <parameter>fp</parameter>. Returns true if succesful, false - otherwise. - </para> - <para> - The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function>, - <function>popen</function>, or <function>fsockopen</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.fgetc"> - <refnamediv> - <refname>fgetc</refname> - <refpurpose>Gets character from file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>fgetc</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns a string containing a single character read from the - file pointed to by fp. Returns FALSE on EOF. - </para> - <para> - The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function>, - <function>popen</function>, or <function>fsockopen</function>. - </para> - <para> - See also <function>fread</function>, <function>fopen</function>, - <function>popen</function>, <function>fsockopen</function>, and - <function>fgets</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.fgetcsv"> - <refnamediv> - <refname>fgetcsv</refname> - <refpurpose> - Gets line from file pointer and parse for CSV fields + </example> + </para> + </refsect1> + </refentry> + <refentry id="function.fclose"> + <refnamediv> + <refname>fclose</refname> + <refpurpose>ì´ë ¤ìë íì¼ í¬ì¸í°ë¥¼ ë«ìµëë¤.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fclose</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + ì´ íì¼ì fpê° ë«íë ì§ì ë©ëë¤. + </para> + <para> + ì±ê³µíë©´ true, ì¤í¨íë©´ false를 ë°íí©ëë¤. + </para> + <para> +íì¼í¬ì¸í°ë ë°ëì ì í¨í ê²ì´ì´ì¼ íê³ ,<function>fopen</function> ì´ë <function>fsockopen</function>ë±ììí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì ì§ì í´ì¼ í©ëë¤. + </para> + </refsect1> + </refentry> + <refentry id="function.feof"> + <refnamediv> + <refname>feof</refname> + <refpurpose>íì¼ì ëì´ íì¼í¬ì¸í°ì ìëì§ í ì¤í¸í©ëë¤.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>feof</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +íì¼ í¬ì¸í°ê° íì¼ì ëì ìê±°ë ìë¬ê° ë°ìíë©´ true, ê·¸ë ì§ ìì¼ë©´ false를 ë°íí©ëë¤. + </para> + <para/>íì¼í¬ì¸í°ë ë°ëì ì í¨í ê²ì´ì´ì¼íê³ ,<function>fopen</function> ì´ë <function>popen</function> ëë <function>fsockopen</function>ì ìí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì ì§ì í´ì¼ í©ëë¤. + </refsect1> + </refentry> + <refentry id="function.fflush"> + <refnamediv> + <refname>fflush</refname> + <refpurpose>ì¶ë ¥ê²°ê³¼ë¥¼ íì¼ë¡ ë³´ë ëë¤.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fflush</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + ì´ í¨ìë모ë ë²í¼ì ì ì¥ëì´ìë ì¶ë ¥ì íì¼í¸ë¤ì ìí´ ì§ì ë ììì ê°ì ë¡ ì°ê¸°í©ëë¤. + <parameter>fp</parameter>. +ì±ê³µíë©´ true, ì¤í¨íë©´ false를 ë°í. + </para> + <para/>ì´ íì¼í¬ì¸í°ë ë°ëì ì í¨í ê²ì´ì´ì¼ íê³ ,<function>fopen</function>ì´ë <function>popen</function>ëë <function>fsockopen</function>ì ìí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì ê°ë¦¬ì¼ì¼ í©ëë¤. + </refsect1> + </refentry> + <refentry id="function.fgetc"> + <refnamediv> + <refname>fgetc</refname> + <refpurpose>íì¼í¬ì¸í°ë¡ë¶í° 문ì ê°ì ¸ì¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>fgetc</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +fpì ìí´ ê°ë¦¬ì¼ì§ íì¼ë¡ë¶í° íê°ì 문ì를 í¬í¨í 문ìì´ì ë°íí©ëë¤. FALSE ë EOF를 ë°íí©ëë¤. + </para> + <para/>ì´ íì¼í¬ì¸í°ë ë°ëì ì í¨í ê²ì´ì´ì¼ íê³ ,<function>fopen</function>ì´ë <function>popen</function> ëë <function>fsockopen</function>ì ìí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì ê°ë¦¬ì¼ì¼ í©ëë¤. + <para> + 참조: <function>fread</function>, <function>fopen</function>, + <function>popen</function>, <function>fsockopen</function>, ê·¸ë¦¬ê³ <function>fgets</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.fgetcsv"> + <refnamediv> + <refname>fgetcsv</refname> + <refpurpose> + íì¼í¬ì¸í°ìì ë¼ì¸ì ê°ì ¸ì¤ê³ CVS ì ë§ê² ë³íí©ëë¤. </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>fgetcsv</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>length</parameter></paramdef> - <paramdef>string + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>fgetcsv</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>length</parameter> + </paramdef> + <paramdef>string <parameter> - <optional>delimiter</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - Similar to <function>fgets</function> except that - <function>fgetcsv</function> parses the line it reads for fields - in <acronym>CSV</acronym> format and returns an array containing - the fields read. The field delimiter is a comma, unless you - specify another delimiter with the optional third parameter. - </simpara> - <simpara> - <parameter>Fp</parameter> must be a valid file pointer to a file - successfully opened by <function>fopen</function>, - <function>popen</function>, or <function>fsockopen</function> - </simpara> - <simpara> - Length must be greater than the longest line to be found in the - CSV file (allowing for trailing line-end characters). - </simpara> - <simpara> - <function>Fgetcsv</function> returns false on error, including - end of file. - </simpara> - <simpara> - N.B. A blank line in a CSV file will be returned as an array - comprising a single null field, and will not be treated as an - error. - </simpara> - <example> - <title> - <function>Fgetcsv</function> example - Read and print entire - contents of a CSV file + <optional>delimiter</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + <function>fgetcsv</function>ê° <acronym>CSV</acronym>íìì¼ë¡ íë를 ì½ì´ìì ë³ííê³ ì½ì íë를 í¬í¨íë ë°°ì´ë¡ ë°ííë ê²ì ì ì¸íê³ ë <function>fgets</function>ì ë¹ì·í©ëë¤. ì¸ë²ì§¸ 매ê°ë³ìë¡ í¹ì í 구ë¶ë¬¸ì를 ì§ì íì§ ìëë¤ë©´ íëì 구ë¶ë¬¸ìë 콤ë§ê° ë©ëë¤. + </simpara> + <simpara> + <parameter>Fp</parameter>ë <function>fopen</function>,<function>popen</function> ì´ë<function>fsockopen</function>ì ìí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì ëí ì í¨í íì¼ í¬ì¸í°ì¬ì¼ í©ëë¤. + </simpara> + <simpara> + CSV íì¼ìì ê°ì¥ 긴 ë¼ì¸ë³´ë¤ ë 길ì´ì¼ í©ëë¤.(ë§ì§ë§ 문ì ì°¾ê¸°ê° íì©ëìì ë) + </simpara> + <simpara> + <function>Fgetcsv</function>ë íì¼ì ëì´ê±°ë ì¤í¨ì false를 ë°íí©ëë¤. + </simpara> + <simpara> + 주ì-- CSV íì¼ìì ë¹ì´ìë ë¼ì¸ì null íë를 ë°°ì´ë¡ ë§ë¤ì´ì ë°ííê³ ìë¬ë¡ ì²ë¦¬ëì§ ììµëë¤. + </simpara> + <example> + <title> + <function>Fgetcsv</function>ì문 - CSV íì¼ì ì ì²´ ë´ì©ì ì½ê³ í린í¸í기 </title> - <programlisting role="php"> + <programlisting role="php"> $row = 1; $fp = fopen ("test.csv","r"); while ($data = fgetcsv ($fp, 1000, ",")) { $num = count ($data); - print "<p> $num fields in line $row: <br>"; + print "<p> $row ë¼ì¸ì $num ê°ì íë: <br>"; $row++; for ($c=0; $c<$num; $c++) { print $data[$c] . "<br>"; @@ -503,51 +463,45 @@ } fclose ($fp); </programlisting> - </example> - </refsect1> - </refentry> - - <refentry id="function.fgets"> - <refnamediv> - <refname>fgets</refname> - <refpurpose>Gets line from file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>fgets</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>length</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns a string of up to length - 1 bytes read from the file - pointed to by fp. Reading ends when length - 1 bytes have been - read, on a newline (which is included in the return value), or on - EOF (whichever comes first). - </para> - <para> - If an error occurs, returns false. - </para> - <para> - Common Pitfalls: - </para> - <simpara> - People used to the 'C' semantics of fgets should note the - difference in how EOF is returned. - </simpara> - <simpara> - The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function>, - <function>popen</function>, or - <function>fsockopen</function>. - </simpara> - <para> - A simple example follows: - <example> - <title>Reading a file line by line</title> - <programlisting role="php"> + </example> + </refsect1> + </refentry> + <refentry id="function.fgets"> + <refnamediv> + <refname>fgets</refname> + <refpurpose>íì¼ í¬ì¸í°ìì ë¼ì¸ ê°ì ¸ì¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>fgets</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>length</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + 리í´ê°ì í¬í¨í ìë¡ì´ 문ìì´ì´ê±°ë íì¼ì ëì¤ìì 먼ì ëë¬ëë ê²ìì 1 ë°ì´í¸ë¥¼ ì½ì´ë¤ì¸í lengthë§í¼ ì¦ê°ëë 문ìì´ - fpì ìí´ ê°ë¦¬ì¼ì§ íì¼ë¡ë¶í° 1 ë°ì´í¸ë¥¼ ì½ìµëë¤. lengthì¼ë ëì ì½ìµëë¤. - ì ë°íí©ëë¤. + </para> + <para> + ìë¬ê° ë°ìíë©´ false를 ë°íí©ëë¤. + </para> + <para> + ì¼ë°ì ì¸ í¨ì : + </para> + <simpara> +fgetsì 'C' 구조를 ì주 ì¬ì©íë ì¬ëë¤ì EOF ê° ë°íëë ë°©ë²ì´ ë¤ë¥´ë¤ë ê²ì 주ìí´ì¼ í©ëë¤. + </simpara> + <simpara> + íì¼ í¬ì¸í°ë ì í¨í ê²ì´ì´ì¼ íê³ í¬ì¸í°ê° ê°ë¦¬í¤ë ê²ì ì±ê³µì ì¼ë¡ ì´ë ¤ì§ <function>fopen</function>,<function>popen</function> ëë <function>fsockopen</function>ì ìí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì´ì´ì¼ íë¤. + </simpara> + <para> + ë¨ìí ì문 <example> + <title>íì¼ì í ë¼ì¸ì© ì½ì´ë¤ì´ê¸°</title> + <programlisting role="php"> $fd = fopen ("/tmp/inputfile.txt", "r"); while (!feof ($fd)) { $buffer = fgets($fd, 4096); @@ -555,773 +509,726 @@ } fclose ($fd); </programlisting> - </example> - </para> - <para> - See also <function>fread</function>, <function>fopen</function>, + </example> + </para> + <para> + 참조: <function>fread</function>, <function>fopen</function>, <function>popen</function>, <function>fgetc</function>, - <function>fsockopen</function>, and + <function>fsockopen</function>, ê·¸ë¦¬ê³ <function>socket_set_timeout</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.fgetss"> - <refnamediv> - <refname>fgetss</refname> - <refpurpose> - Gets line from file pointer and strip HTML tags + </refsect1> + </refentry> + <refentry id="function.fgetss"> + <refnamediv> + <refname>fgetss</refname> + <refpurpose> + íì¼í¬ì¸í°ìì ë¼ì¸ì ê°ì ¸ì¤ê³ HTML í그를 ìì 기 </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>fgetss</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>length</parameter></paramdef> - <paramdef>string + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>fgetss</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>length</parameter> + </paramdef> + <paramdef>string <parameter> - <optional>allowable_tags</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <para> - Identical to <function>fgets</function>, except that fgetss - attempts to strip any HTML and PHP tags from the text it - reads. - </para> - <para> - You can use the optional third parameter to specify tags which - should not be stripped. - <note> - <para> - <parameter>allowable_tags</parameter> was added in PHP 3.0.13, - PHP4B3. - </para> - </note> + <optional>allowable_tags</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> +fgetssê° ì½ì´ë¤ì¸ í ì¤í¸ìì HTMLê³¼ PHP í그를 ìì ë ê²ì ì ì¸íê³ ë <function>fgets</function>ì ê°ìµëë¤. </para> - <para> - See also <function>fgets</function>, <function>fopen</function>, - <function>fsockopen</function>, <function>popen</function>, and + <para> +ì¸ë²ì§¸ 매ê°ë³ìë¡ ìµì ì ì¬ì©í´ì í¹ì í í그를 ì ì¸ìí¬ ìê° ììµëë¤. + <note> + <para> + <parameter>allowable_tags</parameter>ê° PHP 3.0.13, PHP4B3 ì ì¶ê°ëììµëë¤. + </para> + </note> + </para> + <para> + 참조: <function>fgets</function>, <function>fopen</function>, + <function>fsockopen</function>, <function>popen</function>, ê·¸ë¦¬ê³ <function>strip_tags</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.file"> - <refnamediv> - <refname>file</refname> - <refpurpose>Reads entire file into an array</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>file</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>int - <parameter><optional>use_include_path</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <para> - Identical to <function>readfile</function>, except that - <function>file</function> returns the file in an array. Each - element of the array corresponds to a line in the file, with the - newline still attached. - </para> - <para> - You can use the optional second parameter and set it to "1", if - you want to search for the file in the <link - linkend="ini.include-path">include_path</link>, too. </para> - <para> - <informalexample> - <programlisting role="php"> + </refsect1> + </refentry> + <refentry id="function.file"> + <refnamediv> + <refname>file</refname> + <refpurpose>íì¼ì 체를 ë°°ì´ë¡ ì½ì´ë¤ì</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>file</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>int + <parameter> + <optional>use_include_path</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>file</function>ì´ íì¼ì ë°°ì´ë¡ ë°ííë ê²ì ì ì¸íê³ ë <function>readfile</function>ê³¼ ê°ìµëë¤. ìë¡ì´ ë¼ì¸ì´ ì°ê²°ëë ê²ì í¬í¨í´ì ë°°ì´ì 매 ììë íì¼ì ë¼ì¸ê³¼ ë¹ì·í©ëë¤. + </para> + <para/>íì¼ìì <link linkend="ini.include-path">include_path</link>ìì íì¼ì ì°¾ê³ ì¶ë¤ë©´ ëë²ì§¸ 매ê°ë³ìë¡ "1"ì ì¬ì©íë©´ ë©ëë¤. + <para> + <informalexample> + <programlisting role="php"> <?php -// get a web page into an array and print it out +// ë°°ì´ë¡ ì¹ íì´ì§ë¥¼ ê°ì ¸ì¤ê³ ì¶ë ¥í¨ $fcontents = file ('http://www.php.net'); while (list ($line_num, $line) = each ($fcontents)) { echo "<b>Line $line_num:</b> " . htmlspecialchars ($line) . "<br>\n"; } -// get a web page into a string +//문ìì´ë¡ ì¹ íì´ì§ë¥¼ ê°ì ¸ì´ $fcontents = join ('', file ('http://www.php.net')); ?> </programlisting> - </informalexample> - </para> - <para> - See also <function>readfile</function>, - <function>fopen</function>, <function>fsockopen</function>, and - <function>popen</function>. - </para> - </refsect1> - </refentry> - - - <refentry id="function.file-exists"> - <refnamediv> - <refname>file_exists</refname> - <refpurpose>Checks whether a file exists</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>file_exists</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <simpara> + </informalexample> + </para> + <para> + 참조: <function>readfile</function>, + <function>fopen</function>, <function>fsockopen</function>, ê·¸ë¦¬ê³ <function>popen</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.file-exists"> + <refnamediv> + <refname>file_exists</refname> + <refpurpose>íì¼ì´ ìëì§ ì²´í¬</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>file_exists</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> Returns true if the file specified by - <parameter>filename</parameter> exists; false otherwise. - </simpara> - <simpara> - <function>file_exists</function> will not work on remote files; - the file to be examined must be accessible via the server's - filesystem. - </simpara> - <simpara> - The results of this function are cached. See - <function>clearstatcache</function> for more details. + <parameter>filename</parameter>ì ìí´ ì§ì ë íì¼ì´ ìì¼ë©´ true, ìì¼ë©´ false를 ë°íí©ëë¤. </simpara> - </refsect1> - </refentry> - - - <refentry id="function.fileatime"> - <refnamediv> - <refname>fileatime</refname> - <refpurpose>Gets last access time of file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fileatime</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - Returns the time the file was last accessed, or false in case of - an error. The time is returned as a Unix timestamp. - </simpara> - <simpara> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </simpara> - <simpara> - Note: The atime of a file is supposed to change whenever - the data blocks of a file are being read. This can be - costly performancewise when an appliation regularly - accesses a very large number of files or directories. Some - Unix filesystems can be mounted with atime updates disabled - to increase the performance of such applications; USENET - news spools are a common example. On such filesystems - this function will be useless. - </simpara> - </refsect1> - </refentry> - - <refentry id="function.filectime"> - <refnamediv> - <refname>filectime</refname> - <refpurpose>Gets inode change time of file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>filectime</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the time the file was last changed, or false in case of - an error. The time is returned as a Unix timestamp. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <para>Note: In most Unix filesystem, a file is considered - changed, when it's Inode data is changed, that is, when - the permissions, the owner, the group or other metadata - from the Inode is written to. See also - <function>filemtime</function> (this is what you want to use - when you want to create "Last Modified" footers on web pages) and + <simpara> + <function>file_exists</function>ë ì격 íì¼ìë ëìíì§ ììµëë¤.; +ìë²ì íì¼ìì¤í ì íµí´ íì¼ì ì ê·¼í ê²ì¸ì§ ê²ì¬ë©ëë¤. + </simpara> + <simpara> +ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ë¤ë©´ <function>clearstatcache</function>를 ë³´ììì¤. + </simpara> + </refsect1> + </refentry> + <refentry id="function.fileatime"> + <refnamediv> + <refname>fileatime</refname> + <refpurpose>ìµê·¼ì íì¼ì ì ê·¼í ìê°ì ê°ì ¸ì´</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fileatime</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + íì¼ì ìµì¢ ì ê·¼ ìê°ì ë°ííë©° ìë¬ê° ë°ìí ê²½ì°ìë false를 ë°íí©ëë¤. ë°íëë ìê°ì ì ëì¤íìì ëë¤. + </simpara> + <simpara> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ë¤ë©´ <function>clearstatcache</function>를 ë³´ììì¤. + + </simpara> + <simpara> +주ì: íì¼ì ì ê·¼í ìê°ì íì¼ì ì½ì´ë¤ì¸íì ì ê·¼ì´ ë§íì ëë§ë¤ ë°ëë ê²ì´ ì§ìë©ëë¤.ì´ë ê² íë ê²ì ì 기ì ì¼ë¡ ë§¤ì° ë§ì íì¼ì´ë ëë í 리ì ì´í리ì¼ì´ì ìì ì ê·¼í ë 꽤 ë§ì ììì ì구í©ëë¤.ëªëª ì ëì¤ ìì¤í ììë ê·¸ë° ì´í리ì¼ì´ì ì í¼í¬ë¨¼ì¤ ì¦ê°ë¥¼ ë§ê¸° ìí´ì ì ê·¼ìê° ì ë°ì´í¸ ì¤ì ì 꺼ëê³ ë§ì´í¸ í기ë í©ëë¤. USENET ë´ì¤ ì¤íì´ ì¼ë°ì ì¸ ìì ëë¤. ê·¸ë° íì¼ìì¤í ìë ì´ í¨ìë ë³ë¡ ì¸ëª¨ ììê²ì ëë¤. + </simpara> + </refsect1> + </refentry> + <refentry id="function.filectime"> + <refnamediv> + <refname>filectime</refname> + <refpurpose>íì¼ì ìì´ë ¸ë ë³ê²½ìê°ì ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>filectime</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼ì´ ë§ì§ë§ì¼ë¡ ë³ê²½ë ìê°ì ë°íí©ëë¤. ìë¬ê° ë°ìíë©´ false를 ë°íí©ëë¤. ë°íëë ìê°ì ì ëì¤ íìì ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºì¬ê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì <function>clearstatcache</function>를 참조íì¸ì. + </para> + <para>주ì: ëë¶ë¶ì ì ëì¤ íì¼ìì¤í ììë ìì´ë ¸ëì ë°ì´í(ê¶í, ìì ì, 그룹ì´ë ë¤ë¥¸ ìì)ê° ë³ê²½ëìì ë íì¼ì´ ë°ëë ê²ì´ íì©ë©ëë¤. + 참조: <function>filemtime</function> (ì´ê²ì ì¹ íì´ì§ì íë¨ì "ë§ì§ë§ ìì ìê°"ì ë¶ì´ê³ ì¶ì ë ì¬ì©í©ëë¤. ) ê·¸ë¦¬ê³ <function>fileatime</function>. </para> - <para>Note: In some Unix texts the ctime of a file is being - referred to as the creation time of the file. This is wrong. - There is no creation time for Unix files in most Unix - filesystems. + <para>주ì: ëª ëª ì ëì¤ í ì¤í¸ìì íì¼ì ctimeì´ íì¼ì´ ë§ë¤ì´ì§ ìê°ì¼ë¡ ì¬ì©íê³ ì íë ê²½ì°ê° ìëë° ì´ê²ì ì못ë ê²ì ëë¤. ëë¶ë¶ì ì ëì¤ íì¼ìì¤í ìë íì¼ì´ ë§ë¤ì´ì§ ìê°ì´ë¼ë ê²ì´ ììµëë¤. </para> - </refsect1> - </refentry> - - <refentry id="function.filegroup"> - <refnamediv> - <refname>filegroup</refname> - <refpurpose>Gets file group</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>filegroup</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the group ID of the owner of the file, or false in case - of an error. The group ID is returned in numerical format, use - <function>posix_getgrgid</function> to resolve it to a group name. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <note> - <simpara> - This function does not work on Windows systems + </refsect1> + </refentry> + <refentry id="function.filegroup"> + <refnamediv> + <refname>filegroup</refname> + <refpurpose>íì¼ì 그룹ì ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>filegroup</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼ì ìì ìë 그룹ì ID를 ë°íí©ëë¤. ìë¬ê° ë°ìíë©´ false를 ë°íí©ëë¤. 그룹 IDë ì«ìíìì¼ë¡ ë°íì´ ë©ëë¤. 그룹ì ì´ë¦ì¼ë¡ ë°ê¾¸ê¸° ìí´ì <function>posix_getgrgid</function>í¨ìê° ì¬ì©ë©ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì ëë + <function>clearstatcache</function>를 ë³´ììì¤. </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.fileinode"> - <refnamediv> - <refname>fileinode</refname> - <refpurpose>Gets file inode</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fileinode</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the inode number of the file, or false in case of an - error.</para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <note> - <simpara> - This function does not work on Windows systems + </note> + </refsect1> + </refentry> + <refentry id="function.fileinode"> + <refnamediv> + <refname>fileinode</refname> + <refpurpose>íì¼ì ìì´ë ¸ë를 ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fileinode</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼ì ìì´ë ¸ë ì«ì를 ë°ííê±°ë ìë¬ì¼ ê²½ì°ìë false를 ë°íí©ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì ëë + <function>clearstatcache</function>를 ë³´ììì¤. </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤ </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.filemtime"> - <refnamediv> - <refname>filemtime</refname> - <refpurpose>Gets file modification time</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>filemtime</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the time the file was last modified, or false in case of - an error. The time is returned as a Unix timestamp. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <para>Note: This function returns the time when the data - blocks of a file were being written to, that is, the time - when the content of the file was changed. Use - <function>date</function> on the result of this function - to get a printable modification date for use in page footers. - </para> - </refsect1> - </refentry> - - <refentry id="function.fileowner"> - <refnamediv> - <refname>fileowner</refname> - <refpurpose>Gets file owner</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fileowner</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the user ID of the owner of the file, or false in case of - an error. The user ID is returned in numerical format, use - <function>posix_getpwuid</function> to resolve it to a username. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <note> - <simpara> - This function does not work on Windows systems + </note> + </refsect1> + </refentry> + <refentry id="function.filemtime"> + <refnamediv> + <refname>filemtime</refname> + <refpurpose>íì¼ì´ ìì ë ìê°ì ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>filemtime</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼ì´ ë§ì§ë§ì¼ë¡ ìì ì´ ë ìê°ì ë°ííê±°ë ì¤í¨í ê²½ì°ìë false를 ë°íí©ëë¤. ë°íëë ìê°ì ì ëì¤ íìì ëë¤ + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì ëë + <function>clearstatcache</function>를 ë³´ììì¤. </para> + <para>주ì: ì´ í¨ìë íì¼ì ë´ì©ì´ ìì ëë ëì¤ì ì ê·¼ì ë§ì ìê°ì´ 기ë¡ì´ ë©ëë¤. ì´ í¨ìì ì¤íê²°ê³¼ì í¨ê» <function>date</function>를 ì¬ì©íë©´ íì´ì§ì íë¨ì ì¶ë ¥ê°ë¥í ìì ì¼ì를 íìí ì ììµëë¤. + </para> + </refsect1> + </refentry> + <refentry id="function.fileowner"> + <refnamediv> + <refname>fileowner</refname> + <refpurpose>íì¼ì ìì ì를 ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fileowner</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼ ìì ìì ID를 ì«ìíìì¼ë¡ ë°ííê±°ë ì¤í¨í ê²½ì°ìë false를 ë°íí©ëë¤. ID를 ì¬ì©ìì ì´ë¦ì¼ë¡ ë°ê¾¸ê¸° ìí´ì <function>posix_getpwuid</function>를 ì¬ì©í©ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì ëë + <function>clearstatcache</function>를 ë³´ììì¤. + </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.fileperms"> - <refnamediv> - <refname>fileperms</refname> - <refpurpose>Gets file permissions</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fileperms</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the permissions on the file, or false in case of an error. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - </refsect1> - </refentry> - - <refentry id="function.filesize"> - <refnamediv> - <refname>filesize</refname> - <refpurpose>Gets file size</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>filesize</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the size of the file, or false in case of an error. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - </refsect1> - </refentry> - - <refentry id="function.filetype"> - <refnamediv> - <refname>filetype</refname> - <refpurpose>Gets file type</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>filetype</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the type of the file. Possible values are fifo, char, - dir, block, link, file, and unknown.</para> <para> Returns false - if an error occurs. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - </refsect1> - </refentry> - - <refentry id="function.flock"> - <refnamediv> - <refname>flock</refname> - <refpurpose>Portable advisory file locking</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>flock</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>operation</parameter></paramdef> - <paramdef>int + </note> + </refsect1> + </refentry> + <refentry id="function.fileperms"> + <refnamediv> + <refname>fileperms</refname> + <refpurpose>íì¼ì ê¶íì ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fileperms</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para>íì¼ì ê¶íì ë°ííê±°ë ì¤í¨í ê²½ì°ìë false를 ë°íí©ëë¤. + </para> + <para>ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ìëë + <function>clearstatcache</function>를 참조íì¸ì </para> + </refsect1> + </refentry> + <refentry id="function.filesize"> + <refnamediv> + <refname>filesize</refname> + <refpurpose>íì¼ì í¬ê¸°ë¥¼ ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>filesize</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> íì¼ì í¬ê¸°ë false를 ë°íí©ëë¤. + </para> + <para>ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. + ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ìëë + <function>clearstatcache</function>를 참조íì¸ì. + </para> + </refsect1> + </refentry> + <refentry id="function.filetype"> + <refnamediv> + <refname>filetype</refname> + <refpurpose>íì¼ì íìì ê°ì ¸ìµëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>filetype</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para>ë°íëë íì¼ì íìì fifo, char, + dir, block, link, file, ê·¸ë¦¬ê³ unknown ì ëë¤.</para> + <para>ìë¬ê° ë°ìíë©´ false를 ë°íí©ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. + ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ìëë + <function>clearstatcache</function>를 참조íì¸ì. + </para> + </refsect1> + </refentry> + <refentry id="function.flock"> + <refnamediv> + <refname>flock</refname> + <refpurpose>íì¼ ì ê¹ì ê´í ê°ë¨í ëìë§</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>flock</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>operation</parameter> + </paramdef> + <paramdef>int <parameter> - <optional>wouldblock</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - PHP supports a portable way of locking complete files in an - advisory way (which means all accessing programs have to use the - same way of locking or it will not work). - </simpara> - <simpara> - <function>flock</function> operates on <parameter>fp</parameter> - which must be an open file - pointer. <parameter>operation</parameter> is one of the following - values: - </simpara> - <para> - <itemizedlist> - <listitem> - <simpara> - To acquire a shared lock (reader), set - <parameter>operation</parameter> to LOCK_SH (set to 1 prior to - PHP 4.0.1). + <optional>wouldblock</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara>PHPë íì¼ì ëí ì ê·¼ì ë§ëë° ê°ë¨í ë°©ë²ì ì ê³µí©ëë¤. + ì´ê²ì 모ë ì ê·¼íë íë¡ê·¸ë¨ì´ íì¼ì ì ê·¸ëë° ê°ì ë°©ë²ì ì¬ì©í´ì¼ íë©° + ê·¸ë ì§ ìì¼ë©´ ëìíì§ ììµëë¤. + </simpara> + <simpara> + <function>flock</function>ì <parameter>fp</parameter>ê° ì´ë ¤ì§ + íì¼ì ëí í¬ì¸í°ì¼ë ì´ê²ììì ëìí©ëë¤ + <parameter>operation</parameter>ì ì°ì¶ëë ê°ì¤ì íëì ëë¤: +</simpara> + <para> + <itemizedlist> + <listitem> + <simpara>ê³µëì¼ë¡ ì ê·¼ì ë§ê³ ì í ë(ì½ë ì¬ë) + <parameter>operation</parameter>ì LOCK_SHë¡ ì¤ì í©ëë¤ (PHP 4.0.1 ì´ì ë²ì ì 1ë¡ ì¤ì í©ëë¤). </simpara> - </listitem> - <listitem> - <simpara> - To acquire an exclusive lock (writer), set - <parameter>operation</parameter> to LOCK_EX (set to 2 prior to - PHP 4.0.1). + </listitem> + <listitem> + <simpara> + ë¨ë ì¼ë¡ ì ê·¼ì ë§ë ê²ì´ íìí ë(ì°ë ì¬ë) + <parameter>operation</parameter>ì LOCK_EXë¡ ì¤ì í©ëë¤ (PHP 4.0.1ì´ì ë²ì ì 2ë¡ ì¤ì í©ëë¤). </simpara> - </listitem> - <listitem> - <simpara> - To release a lock (shared or exclusive), set - <parameter>operation</parameter> to LOCK_UN (set to 3 prior to - PHP 4.0.1). + </listitem> + <listitem> + <simpara> + íì¼ì ëí ì ê·¼ì íì´ì¤ë (ê³µë ëë ë¨ë ) + <parameter>operation</parameter>ì LOCK_UNì¼ë¡ ì¤ì í©ëë¤. (PHP 4.0.1ì´ì ë²ì ì 3ì¼ë¡ ì¤ì í©ëë¤). </simpara> - </listitem> - <listitem> - <simpara> - If you don't want <function>flock</function> to block while - locking, add LOCK_NB (4 prior to PHP 4.0.1) to - <parameter>operation</parameter>. + </listitem> + <listitem> + <simpara> + íì¼ì ëí ì ê·¼ì ë§ëë° <function>flock</function>ì ì¬ì©íê³ ì¶ì§ìì¼ë©´ + LOCK_NBì ì¶ê° íì¸ì (PHP 4.0.1 ì´ì ë²ì ¼ììë) + <parameter>operation</parameter>ì 4ë¡ ì¤ì íì¸ì. </simpara> - </listitem> - </itemizedlist> - </para> - <simpara> - <function>Flock</function> allows you to perform a simple + </listitem> + </itemizedlist> + </para> + <simpara> + <function>Flock</function>ì ì¤ì ë¡ ëª¨ë íê²½ìì + ê°ë¨í ì½ê¸°/ì°ê¸° ì를 ìíí ì ìê² ë§ë¤ì´ì¤ëë¤ reader/writer model which can be used on virtually every platform - (including most Unices and even Windows). The optional 3rd - argument is set to true if the lock would block (EWOULDBLOCK + (ëë¶ë¶ì ì ëì¤ì ìëì°ì¦ íê²½ììë). ì ê·¼ì ë§ì ìê° ìë¤ë©´ + ì¸ë²ì§¸ 매ê°ë³ìê° trueë¡ ì¤ì ëì´ ìë ê²ì ëë¤.(EWOULDBLOCK errno condition) </simpara> - <simpara> - <function>Flock</function> returns true on success and false on - error (e.g. when a lock could not be acquired). - </simpara> - <warning> - <para> - On most operation systems <function>flock</function> is implemented - at the process level. When using a multithreaded server API like - ISAPI you cannot rely on <function>flock</function> to protect - files against other PHP scripts running in parallel threads of the - same server instance! + <simpara> + <function>Flock</function>ì ì±ê³µíë©´ true를 ë°ííê³ ì¤í¨íë©´ false를 ë°íí©ëë¤. + (ì를 ë¤ë©´ íì¼ ì ê·¼ì ë§ëê²ì´ ìì²ëì§ ëª»í ë). + </simpara> + <warning> + <para> + <function>flock</function>ì ëë¶ë¶ì ì´ìì²´ì ìì íë¡ì¸ì¤ ë¨ê³ìì ì¤íë©ëë¤ + . ISAPIê°ì ë©í°ì°ë ëë ìë² API를 ì¬ì©íê³ ì í ê²½ì°ì + <function>flock</function>ì´ ê°ì ìë²ì ì¸ì¤í´ì¤ì ë³ë ¬ ì°ë ëë¡ì + ë¤ë¥¸ PHPì¤í¬ë¦½í¸ê° ì§íë ë íì¼ì ë³´í¸í ê²ì 기ëíì§ ë§ììì¤ </para> - </warning> - </refsect1> - </refentry> - - <refentry id="function.fopen"> - <refnamediv> - <refname>fopen</refname> - <refpurpose>Opens file or URL</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fopen</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>string <parameter>mode</parameter></paramdef> - <paramdef>int + </warning> + </refsect1> + </refentry> + <refentry id="function.fopen"> + <refnamediv> + <refname>fopen</refname> + <refpurpose>íì¼ì´ë URLì ì½ëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fopen</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>string <parameter>mode</parameter> + </paramdef> + <paramdef>int <parameter> - <optional>use_include_path</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - If <parameter>filename</parameter> begins with "http://" (not - case sensitive), an HTTP 1.0 connection is opened to the - specified server and a file pointer is returned to the beginning - of the text of the response. A 'Host:' header is sent with the - request in order to handle name-based virtual hosts. - </simpara> - <simpara> - Does not handle HTTP redirects, so you must include trailing - slashes on directories. - </simpara> - <simpara> - If <parameter>filename</parameter> begins with "ftp://" (not case - sensitive), an ftp connection to the specified server is opened - and a pointer to the requested file is returned. If the server - does not support passive mode ftp, this will fail. You can open - files for either reading or writing via ftp (but not both - simultaneously). - </simpara> - <simpara> - If <parameter>filename</parameter> is one of "php://stdin", - "php://stdout", or "php://stderr", the corresponding stdio - stream will be opened. (This was introduced in PHP 3.0.13; - in earlier versions, a filename such as "/dev/stdin" or - "/dev/fd/0" must be used to access the stdio streams.) - </simpara> - <simpara> - If <parameter>filename</parameter> begins with anything else, the - file will be opened from the filesystem, and a file pointer to - the file opened is returned. + <optional>use_include_path</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + ë§ì½<parameter>filename</parameter>ì´ "http://"ë¡ ììíë©´ + (sensitive íì§ ìì ê²½ì°ì), HTTP 1.0 ì°ê²°ì´ ì§ì ë ìë²ë¥¼ ì´ì´ì¤ëë¤.ê·¸ë¦¬ê³ íì¼ í¬ì¸í°ë + ìëµí ì¤í¸ì ììë¶ë¶ì¼ë¡ ëë ¤ì§ëë¤.. A 'í¸ì¤í¸:' í¤ëë¶ë¶ì + name-based virtual hosts를 í¸ë¤ë§í기 ìí´ì ìì²ê³¼ í¨ê» ë³´ë´ì§ëë¤. + </simpara> + <simpara> + HTTP 리ë¤ì´ë í¸ë¥¼ ê±´ëë¦¬ì§ ë§ììì¤. ë°ëì ëë í 리ë¤ì ë°ë¥´ë ì¬ëì¬ë¥¼ í¬í¨ìì¼ì¼ í©ëë¤. + </simpara> + <simpara> + ë§ì½ì <parameter>filename</parameter>ì´ "ftp://"ë¡ ììì´ ëë©´ + (sensitive íì§ ìì ê²½ì°ì), ì§ì ë ìë²ê° ftpì°ê²°ì ìí´ ì´ë ¤ì§ëë¤. + ê·¸ë¦¬ë¡ ìì²ë íì¼ì ëí í¬ì¸í°ê° ë°íë©ëë¤. + ë§ì½ì ìë²ì ftpê° ë°ì ì ìë 모ë를 ì§ìíì§ ìì¼ë©´, ì´ê²ì ì¤íë ì ììµëë¤. + ftp를 íµí´ì íì¼ì ì½ê±°ë ì¸ìë ììµëë¤.ftp (ëìì í ìë ììµëë¤). + </simpara> + <simpara> + ë§ì½ì<parameter>filename</parameter>ì´ "php://stdin", + "php://stdout", "php://stderr",ì¤ì íëë¼ë©´ ì¼ì¹íë + íì¤ì ì¶ë ¥ ì¤í¸ë¦¼ì´ ì´ë¦¬ê² ë©ëë¤ + (PHP 3.0.13ì ìê°ê° ëì´ ììµëë¤; + ì´ì ë²ì ìì íì¤ì ì¶ë ¥ ì¤í¸ë¦¼ì ì ê·¼íë ¤ë©´ + filenameì´ "/dev/stdin" ì´ë "/dev/fd/0" ì´ì´ì¼ í©ëë¤.) + </simpara> + <simpara> + <parameter>filename</parameter>ì´ ë¤ë¥¸ ê²ì¼ë¡ ììëë©´ ê·¸ íì¼ì + íì¼ ìì¤í ìì ì´ë ¤ì§ëë¤. ê·¸ë¦¬ê³ , íì¼ì ëí íì¼ í¬ì¸í°ê° ì´ë ¤ì ë°íë©ëë¤. </simpara> - <simpara> - If the open fails, the function returns false. + <simpara> + ì´ìê° ìë¤ë©´ false를 ë°íí©ëë¤. </simpara> - <para> - <parameter>mode</parameter> may be any of the following: + <para> + <parameter>mode</parameter>ë¤ìì ì´ëê²ì´ë¼ë ë ìê° ììµëë¤: <itemizedlist> - <listitem> - <simpara> - 'r' - Open for reading only; place the file pointer at the - beginning of the file. + <listitem> + <simpara> + 'r' - ì½ê¸°ì ì©ì¼ë¡ ì´ë¦½ëë¤; íì¼í¬ì¸í°ë¥¼ íì¼ì 맨 ìì ëìµëë¤. </simpara> - </listitem> - <listitem> - <simpara> - 'r+' - Open for reading and writing; place the file pointer at - the beginning of the file. + </listitem> + <listitem> + <simpara> + 'r+' - ì½ê¸° ì°ê¸°ê° ê°ë¥í©ëë¤.; íì¼ í¬ì¸í°ë¥¼ íì¼ì 맨 ìì ëìµëë¤. </simpara> - </listitem> - <listitem> - <simpara> - 'w' - Open for writing only; place the file pointer at the - beginning of the file and truncate the file to zero length. - If the file does not exist, attempt to create it. + </listitem> + <listitem> + <simpara> + 'w' - ì°ê¸° ì ì©ì¼ë¡ ì´ë¦½ëë¤; íì¼ í¬ì¸í°ë¥¼ íì¼ì 맨 ìì ëìµëë¤ + ê·¸ë¦¬ê³ íì¼ì í¬ê¸°ë¥¼ 0ì¼ë¡ ë§ëëë¤. íì¼ì´ ìì¼ë©´ ë§ëëë¤. </simpara> - </listitem> - <listitem> - <simpara> - 'w+' - Open for reading and writing; place the file pointer at - the beginning of the file and truncate the file to zero - length. If the file does not exist, attempt to create it. + </listitem> + <listitem> + <simpara> + 'w+' - ì½ê¸° ì°ê¸°ê° ê°ë¥í©ëë¤; íì¼í¬ì¸í°ë¥¼ íì¼ì 맨 ìì ëìµëë¤. + ê·¸ë¦¬ê³ íì¼ì í¬ê¸°ë¥¼0ì¼ë¡ ë§ëëë¤. íì¼ì´ ìì¼ë©´ ë§ëëë¤. </simpara> - </listitem> - <listitem> - <simpara> - 'a' - Open for writing only; place the file pointer at the end - of the file. If the file does not exist, attempt to create - it. + </listitem> + <listitem> + <simpara> + 'a' - ì°ê¸° ì ì©ì¼ë¡ ì´ë¦½ëë¤; íì¼ í¬ì¸í°ë¥¼ íì¼ì ëì ëìµëë¤. + íì¼ì´ ìì¼ë©´ ë§ëëë¤. </simpara> - </listitem> - <listitem> - <simpara> - 'a+' - Open for reading and writing; place the file pointer at - the end of the file. If the file does not exist, attempt to - create it. + </listitem> + <listitem> + <simpara> + 'a+' - ì½ê¸° ì°ê¸°ê° ê°ë¥í©ëë¤; íì¼ í¬ì¸í°ë¥¼ íì¼ì ëì ëìµëë¤. + íì¼ì´ ìì¼ë©´ ë§ëëë¤. </simpara> - </listitem> - </itemizedlist> - The <parameter>mode</parameter> may contain the letter - 'b'. This is useful only on systems which differentiate between - binary and text files (i.e., it's useless on Unix). If not - needed, this will be ignored. - </para> - <para> - You can use the optional third parameter and set it to "1", if - you want to search for the file in the <link - linkend="ini.include-path">include_path</link>, too. - </para> - <para> - <example> - <title><function>Fopen</function> example</title> - <programlisting role="php"> + </listitem> + </itemizedlist> + <parameter>mode</parameter>ê° ë¬¸ì'b'를 í¬í¨í ìë ììµëë¤. + ì´ê²ì ìì¤í ììì ë°ì´ë리ì í ì¤í¸ íì¼ì 구ë³ì§ëë° ì¸ëª¨ê° ììµëë¤ + (ë¤ì ë§íë©´ ì ëì¤ììë ì¸ëª¨ê° ììµëë¤).íìê° ìì¼ë©´ ì¬ì©íì§ ë§ì¸ì. + </para> + <para> + ì¸ë²ì§¸ 매ê°ë³ì를 ì¬ì©í ì ìëë° <link linkend="ini.include-path">include_path</link>ê°ì´ë°ì + íì¼ì ì°¾ê³ ì¶ì¼ë©´ "1"ë¡ ì¤ì íì¸ì. + </para> + <para> + <example> + <title> + <function>Fopen</function> example</title> + <programlisting role="php"> $fp = fopen ("/home/rasmus/file.txt", "r"); $fp = fopen ("/home/rasmus/file.gif", "wb"); $fp = fopen ("http://www.php.net/", "r"); $fp = fopen ("ftp://user:password@example.com/", "w"); </programlisting> - </example> - </para> - <simpara> - If you are experiencing problems with reading and writing to - files and you're using the server module version of PHP, remember - to make sure that the files and directories you're using are - accessible to the server process. - </simpara> - <para> - On the Windows platform, be careful to escape any backslashes - used in the path to the file, or use forward slashes. + </example> + </para> + <simpara> + PHPì ìë² ëª¨ë ë²ì ì ì¬ì©íëë° íì¼ì ì½ê³ ì°ëë° ë¬¸ì 를 겪ìë¤ë©´ + íì¼ê³¼ ëë í 리를 ìë² íë¡ì¸ì¤ê° ì ê·¼ì´ ê°ë¥íê² íëì§ íì¸í´ë³´ì¸ì + </simpara> + <para> + ìëì°ì¦ììë, íì¼ì ê²½ë¡ìì ë°±ì¬ëì를 ì¬ì©íëì§ ì¬ëì를 ì¬ì©íëì§ ì£¼ìíì¸ì. <informalexample> - <programlisting role="php"> + <programlisting role="php"> $fp = fopen ("c:\\data\\info.txt", "r"); </programlisting> - </informalexample> - </para> - <simpara> - See also <function>fclose</function>, + </informalexample> + </para> + <simpara> + 참조 <function>fclose</function>, <function>fsockopen</function>, <function>socket_set_timeout</function>, and <function>popen</function>. </simpara> - </refsect1> - </refentry> - - <refentry id="function.fpassthru"> - <refnamediv> - <refname>fpassthru</refname> - <refpurpose> - Output all remaining data on a file pointer + </refsect1> + </refentry> + <refentry id="function.fpassthru"> + <refnamediv> + <refname>fpassthru</refname> + <refpurpose> + íì¼ í¬ì¸í°ì ë¨ììë 모ë ë°ì´í를 ì¶ë ¥í©ëë¤ </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fpassthru</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - Reads to EOF on the given file pointer and writes the results to - standard output. - </simpara> - <simpara> - If an error occurs, <function>fpassthru</function> returns - false. - </simpara> - <simpara> - The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function>, - <function>popen</function>, or <function>fsockopen</function>. - The file is closed when <function>fpassthru</function> is done - reading it (leaving <parameter>fp</parameter> useless). - </simpara> - <simpara> - If you just want to dump the contents of a file to stdout you may - want to use the <function>readfile</function>, which saves you - the <function>fopen</function> call. - </simpara> - <simpara> - See also <function>readfile</function>, - <function>fopen</function>, <function>popen</function>, and + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fpassthru</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + 주ì´ì§ íì¼í¬ì¸í°ë¥¼ ëê¹ì§ ì½ê³ ì¼ë° ì¶ë ¥ì¼ë¡ 결과를 ìëë¤. + </simpara> + <simpara> + ìë¬ê° ë°ìíë©´<function>fpassthru</function>ë false를 ë°íí©ëë¤. + </simpara> + <simpara> + íì¼í¬ì¸í°ë ì í¨í ê²ì´ì´ì¼ í©ëë¤. ê·¸ë¦¬ê³ <function>fopen</function>, + <function>popen</function>, or <function>fsockopen</function>ì ìí´ ì±ê³µì ì¼ë¡ + ì´ë ¤ì§ íì¼ì ê°ë¦¬ì¼ì¼ í©ëë¤. + <function>fpassthru</function>ê° íì¼ì½ê¸°ë¥¼ ë§ì¹ë©´ íì¼ì´ ë«íëë¤. + (ë¨ê²¨ì§ <parameter>fp</parameter>ë ì¸ëª¨ê° ììµëë¤). + </simpara> + <simpara> + íì¼ì ë´ì©ì ì¼ë°ì¶ë ¥ì¼ë¡ ë³´ë´ê¸° ìí ê²ì´ë¼ë©´, <function>fopen</function>ì í¸ì¶íë ê²ë³´ë¤ + <function>readfile</function>ì ì¬ì©íê³ ì¶ì´í ê²ì ëë¤ + </simpara> + <simpara> + 참조<function>readfile</function>, + <function>fopen</function>, <function>popen</function>, ê·¸ë¦¬ê³ <function>fsockopen</function> - </simpara> - </refsect1> - </refentry> - - <refentry id="function.fputs"> - <refnamediv> - <refname>fputs</refname> - <refpurpose>Writes to a file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fputs</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>string <parameter>str</parameter></paramdef> - <paramdef>int + </simpara> + </refsect1> + </refentry> + <refentry id="function.fputs"> + <refnamediv> + <refname>fputs</refname> + <refpurpose>íì¼ í¬ì¸í°ì 기ë¡í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fputs</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>string <parameter>str</parameter> + </paramdef> + <paramdef>int <parameter> - <optional>length</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>Fputs</function> is an alias to - <function>fwrite</function>, and is identical in every way. Note - that the <parameter>length</parameter> parameter is optional and - if not specified the entire string will be written. - </para> - </refsect1> - </refentry> - - <refentry id="function.fread"> - <refnamediv> - <refname>fread</refname> - <refpurpose>Binary-safe file read</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>fread</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>length</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - <function>Fread</function> reads up to - <parameter>length</parameter> bytes from the file pointer - referenced by <parameter>fp</parameter>. Reading stops when - <parameter>length</parameter> bytes have been read or EOF is - reached, whichever comes first. - </simpara> - <para> - <informalexample> - <programlisting role="php"> -// get contents of a file into a string + <optional>length</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>Fputs</function>ë <function>fwrite</function>ë¡ ì¸ì ë ì¨ë¦¬ì´ì¤ ë©ëë¤. + <parameter>length</parameter>매ê°ë³ìë ì íì´ ê°ë¥íê³ ì ì²´ 문ìì´ì´ ëì´ëì§ ìì¼ë©´ ì°ì¬ì§ë¤ë ê²ì 주ìíì¸ì. + </para> + </refsect1> + </refentry> + <refentry id="function.fread"> + <refnamediv> + <refname>fread</refname> + <refpurpose>Binary-safe íì¼ ì½ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>fread</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>length</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + <function>Fread</function>ë <parameter>fp</parameter>ì ìí´ ì°¸ì¡°ê° ëë + íì¼ í¬ì¸í°ë¡ë¶í° <parameter>length</parameter>를 ë°ì´í¸ë¡ ì¦ê°ìí¤ë©° ì½ìµëë¤. + <parameter>length</parameter>ë°ì´í¸ê° ì½íê±°ë íì¼ì ëì ëë¬ëê±°ë + ëì¤ì 먼ì ëëë ê²ì´ ìì¼ë©´ ì½ê¸°ê° ì¢ ë£ë©ëë¤.. + </simpara> + <para> + <informalexample> + <programlisting role="php"> +// íì¼ì ë´ì©ì 문ìì´ë¡ ê°ì ¸ì¤ê¸° $filename = "/usr/local/something.txt"; $fd = fopen ($filename, "r"); -$contents = fread ($fd, filesize ($filename)); +$contents = fread ($fd, íì¼ìí¬ê¸° ($filename)); fclose ($fd); </programlisting> - </informalexample> - </para> - <simpara> - See also <function>fwrite</function>, <function>fopen</function>, + </informalexample> + </para> + <simpara> + 참조 <function>fwrite</function>, <function>fopen</function>, <function>fsockopen</function>, <function>popen</function>, <function>fgets</function>, <function>fgetss</function>, <function>fscanf</function>, <function>file</function>, and <function>fpassthru</function>. </simpara> - </refsect1> - </refentry> - - <refentry id="function.fscanf"> - <refnamediv> - <refname>fscanf</refname> - <refpurpose>Parses input from a file according to a format</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>mixed <function>fscanf</function></funcdef> - <paramdef>int <parameter>handle</parameter></paramdef> - <paramdef>string <parameter>format</parameter></paramdef> - <paramdef>string - <parameter><optional>var1</optional></parameter>... + </refsect1> + </refentry> + <refentry id="function.fscanf"> + <refnamediv> + <refname>fscanf</refname> + <refpurpose>íìì ë°ë¼ì íì¼ë¡ ë¶í° ë¶ìíì¬ ì ë ¥í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>mixed <function>fscanf</function> + </funcdef> + <paramdef>int <parameter>handle</parameter> + </paramdef> + <paramdef>string <parameter>format</parameter> + </paramdef> + <paramdef>string + <parameter> + <optional>var1</optional> + </parameter>... </paramdef> - </funcprototype> - </funcsynopsis> - <para> - The function <function>fscanf</function> is similar to - <function>sscanf</function>, but it takes its input from a file - associated with <parameter>handle</parameter> and interprets the - input according to the specified - <parameter>format</parameter>. If only two parameters were passed - to this function, the values parsed will be returned as an array. - Otherwise, if optional parameters are passed, the function will - return the number of assigned values. The optional parameters - must be passed by reference. + </funcprototype> + </funcsynopsis> + <para> + <function>fscanf</function>ë <function>sscanf</function>ê³¼ ë¹ì·íì§ë§, + ë´ì©ì íì¼ë¡ë¶í° ê°ì ¸ì¨ë¤ë ê²ì´ ë¤ë¦ ëë¤. + <parameter>handle</parameter>ê³¼ í¨ê» ì¼ë ¨ì <parameter>format</parameter>ì¼ë¡ + ì ë ¥ë´ì©ì ë°ê¾¸ì´ ì¤ëë¤. + ì´ í¨ìì ëê°ì 매ê°ë³ìë§ ì¬ì©ëë¤ë©´ ë°°ì´ íìì ê°ì¼ë¡ ë³íëì´ ë°íë©ëë¤. + ê·¸ë ì§ ìì ê²½ì°ìë ì íì ì¸ ë§¤ê°ë³ì를 ì¬ì©íì§ ìì¼ë©´ ì´ í¨ìë í ë¹ë ê°ì ì«ìë¡ ë°íí©ëë¤. + ì íì ì¸ ë§¤ê°ë³ìë ë°ëì passed by referenceì¬ì¼ í©ëë¤. <example> - <title><function>Fscanf</function> Example</title> - <programlisting role="php"> + <title> + <function>Fscanf</function>ì</title> + <programlisting role="php"> $fp = fopen ("users.txt","r"); while ($userinfo = fscanf ($fp, "%s\t%s\t%s\n")) { list ($name, $profession, $countrycode) = $userinfo; @@ -1329,265 +1236,278 @@ } fclose($fp); </programlisting> - </example> - <example> - <title>users.txt</title> - <programlisting> + </example> + <example> + <title>users.txt</title> + <programlisting> javier argonaut pe hiroshi sculptor jp robert slacker us luigi florist it </programlisting> - </example> - </para> - <para> - See also <function>fread</function>, <function>fgets</function>, + </example> + </para> + <para> + 참조 <function>fread</function>, <function>fgets</function>, <function>fgetss</function>, <function>sscanf</function>, <function>printf</function>, and <function>sprintf</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.fseek"> - <refnamediv> - <refname>fseek</refname> - <refpurpose>Seeks on a file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fseek</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>offset</parameter></paramdef> - <paramdef>int - <parameter><optional>whence</optional></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <para> - Sets the file position indicator for the file referenced by - <parameter>fp</parameter>.The new position, measured in bytes - from the beginning of the file, is obtained by adding - <parameter>offset</parameter> to the position specified by - <parameter>whence</parameter>, whose values are defined as - follows: + </refsect1> + </refentry> + <refentry id="function.fseek"> + <refnamediv> + <refname>fseek</refname> + <refpurpose>íì¼ í¬ì¸í°ìì 찾기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fseek</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>offset</parameter> + </paramdef> + <paramdef>int + <parameter> + <optional>whence</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <parameter>fp</parameter>ì ìí´ ì°¸ì¡°ëë íì¼ì íì¼ ìì¹ ì¸¡ì ìë¡ ì¤ì í©ëë¤. + íì¼ì ìììì¹ììë¶í° ë°ì´í¸ë¨ìë¡ ì¸¡ì ëë ìë¡ì´ìì¹ë + ìëì ê°ì´ ì ìë <parameter>whence</parameter>ë¡ë¶í° ëì´ì´ ë ìì¹ì <parameter>offset</parameter>ì ì¶ê°íì¬ ì»ì´ì§ëë¤ <simplelist> - <member>SEEK_SET - Set position equal to - <parameter>offset</parameter> bytes.</member> <member>SEEK_CUR - - Set position to current location plus - <parameter>offset</parameter>.</member> <member>SEEK_END - Set - position to end-of-file plus - <parameter>offset</parameter>.</member> - </simplelist> - </para> - <para>If <parameter>whence is not specified, it is assumed to be - SEEK_SET.</parameter> - </para> - <para> - Upon success, returns 0; otherwise, returns -1. Note that seeking - past EOF is not considered an error. - </para> - <para> - May not be used on file pointers returned by - <function>fopen</function> if they use the "http://" or "ftp://" - formats. - </para> - <note> - <para> - The <parameter>whence</parameter> argument was added after PHP 4.0 RC1. + <member>SEEK_SET - ìì¹ë¥¼ <parameter>offset</parameter>ë°ì´í¸ì ê°ê² í©ëë¤.</member> + <member>SEEK_CUR - + íì¬ ìì¹ì <parameter>offset</parameter>ì ëíì¬ ìì¹ë¥¼ ì í©ëë¤.</member> + <member>SEEK_END - íì¼ì ëì + <parameter>offset</parameter>ì ëíì¬ ìì¹ë¥¼ ì í©ëë¤.</member> + </simplelist> + </para> + <para>ë§ì½ì<parameter>whence ê° ì í´ì§ì§ ììë¤ë©´ SEEK_SETì¼ë¡ ê°ì ì´ ë©ëë¤.</parameter> + </para> + <para> + ì±ê³µíë©´ 0ì ë°ííê³ ê·¸ë ì§ ìì¼ë©´ 1ì ë°íí©ëë¤. + ì´ì ì EOF를 ì°¾ì ê²ì ìë¬ì ìí¥ì ì£¼ì§ ììµëë¤ + </para> + <para> + ë§ì½ì "http://" or "ftp://" íìì ì¬ì©íë¤ë©´ + <function>fopen</function>ì ìí´ ë°íëë íì¼í¬ì¸í° ììì ì¬ì©ëì§ ìì ê²ì ëë¤ + </para> + <note> + <para> + <parameter>whence</parameter>ì¸ìë PHP 4.0 RC1 ì´íì ì¶ê°ëììµëë¤. </para> - </note> - <para> - See also <function>ftell</function> and + </note> + <para> + 참조 <function>ftell</function> and <function>rewind</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.fstat"> - <refnamediv> - <refname>fstat</refname> - <refpurpose> - Gets information about a file using an open file pointer + </refsect1> + </refentry> + <refentry id="function.fstat"> + <refnamediv> + <refname>fstat</refname> + <refpurpose> + ì¤í íì¼ í¬ì¸í°ë¥¼ ì¬ì©íë íì¼ì ëí ì ë³´ ê°ì ¸ì¤ê¸° </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>fstat</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Gathers the statistics of the file opened by the file - pointer fp. This function is similar to the - <function>stat</function> function except that it operates - on an open file pointer instead of a filename. - </para> - <para> - Returns an array with the statistics of the file with the - following elements: - <orderedlist> - <listitem><simpara>device</simpara></listitem> - <listitem><simpara>inode</simpara></listitem> - <listitem><simpara>number of links</simpara></listitem> - <listitem><simpara>user id of owner</simpara></listitem> - <listitem><simpara>group id owner</simpara></listitem> - <listitem><simpara>device type if inode device *</simpara></listitem> - <listitem><simpara>size in bytes</simpara></listitem> - <listitem><simpara>time of last access</simpara></listitem> - <listitem><simpara>time of last modification</simpara></listitem> - <listitem><simpara>time of last change</simpara></listitem> - <listitem><simpara>blocksize for filesystem I/O *</simpara></listitem> - <listitem><simpara>number of blocks allocated</simpara></listitem> - </orderedlist> - * - only valid on systems supporting the st_blksize type--other - systems (i.e. Windows) return -1</para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>fstat</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼ í¬ì¸í° fpì ìí´ì ì´ë ¤ì§ íì¼ì ì 보를 모ìëë¤.Gathers the statistics of the file opened by the file + ì´ í¨ìë filenameëì ì ì¤í íì¼ í¬ì¸í°ììì ëìíë¤ë ê²ì ì ì¸íê³ ë <function>stat</function>ê³¼ ë¹ì·í©ëë¤. </para> - </refsect1> - </refentry> - - <refentry id="function.ftell"> - <refnamediv> - <refname>ftell</refname> - <refpurpose>Tells file pointer read/write position</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>ftell</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns the position of the file pointer referenced by fp; i.e., - its offset into the file stream. - </para> - <para> - If an error occurs, returns false. - </para> - <para> - The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function> or - <function>popen</function>. + <para> + ë¤ìì ììë¤ê³¼ í¨ê» íì¼ì íµê³ìë£ë¥¼ ë°°ì´ë¡ ë°íí©ëë¤: + <orderedlist> + <listitem> + <simpara>ì¥ì¹(device)</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë</simpara> + </listitem> + <listitem> + <simpara>ë§í¬ì ê°¯ì</simpara> + </listitem> + <listitem> + <simpara>ìì ìì user id</simpara> + </listitem> + <listitem> + <simpara>ìì ìì group id</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë ì¥ì¹(device)ê° ìì¼ë©´ ì¥ì¹(device) íí*</simpara> + </listitem> + <listitem> + <simpara>ë°ì´í¸ë¨ì í¬ê¸°</simpara> + </listitem> + <listitem> + <simpara>ë§ì§ë§ ì ê·¼ìê°</simpara> + </listitem> + <listitem> + <simpara>ë§ì§ë§ ìì ë ìê°</simpara> + </listitem> + <listitem> + <simpara>ë§ì§ë§ ë°ë ìê°</simpara> + </listitem> + <listitem> + <simpara>íì¼ ìì¤í ì ì¶ë ¥(I/O) blocksize*</simpara> + </listitem> + <listitem> + <simpara>í ë¹ë blockì ì</simpara> + </listitem> + </orderedlist> + * - st_blksize íí를 ì§ìíë ìì¤í ìë§ ì í¨í©ëë¤--ë¤ë¥¸ ìì¤í + (ë¤ì ë§í´ì ìëì°ì¦ê°ì)ì -1ì ë°íí©ëë¤</para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë + ìì¸í ìê³ ì¶ì¼ë©´ <function>clearstatcache</function>참조íì¸ì + </para> + </refsect1> + </refentry> + <refentry id="function.ftell"> + <refnamediv> + <refname>ftell</refname> + <refpurpose>íì¼í¬ì¸í°ì ì½ê¸°/ì°ê¸° ìì¹ ë§í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ftell</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + fpì ìí´ ì°¸ì¡°ëë íì¼ì ìì¹ë¥¼ ë°íí©ëë¤. ë¤ì ë§í´ì ììë ê²°ê³¼ê° íì¼ ì¤í¸ë¦¼ìì¼ë¡ ë¤ì´ê°ëë¤ </para> + <para> + ìë¬ê° ë°ìíë©´ false를 ë°íí©ëë¤. + </para> + <para> + íì¼ í¬ì¸í°ë ë°ëì ì í¨í ê²ì´ì´ì¼ íê³ <function>fopen</function>ì´ë + <function>popen</function>ì ìí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì ê°ë¦¬ì¼ì¼ í©ëë¤. </para> - <para> - See also <function>fopen</function>, <function>popen</function>, + <para> + 참조<function>fopen</function>, <function>popen</function>, <function>fseek</function> and <function>rewind</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.ftruncate"> - <refnamediv> - <refname>ftruncate</refname> - <refpurpose> - Truncates a file to a given length. + </refsect1> + </refentry> + <refentry id="function.ftruncate"> + <refnamediv> + <refname>ftruncate</refname> + <refpurpose> + 주ì´ì§ 길ì´ë¡ ìë¼ë´ê¸° </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>ftruncate</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>size</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Takes the filepointer, fp, and truncates the file to length, size. - This function returns true on success and false on failure. - </para> - </refsect1> - </refentry> - - <refentry id="function.fwrite"> - <refnamediv> - <refname>fwrite</refname> - <refpurpose>Binary-safe file write</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>fwrite</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>string <parameter>string</parameter></paramdef> - <paramdef>int + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ftruncate</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>size</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼í¬ì¸í°ì fp를 ê°ì ¸ìµëë¤. ê·¸ë¦¬ê³ íì¼ì 길ì´, í¬ê¸°ë¡ ìë¼ë ëë¤. + ì´ í¨ìë ì±ê³µíë©´ true, ì¤í¨íë©´ false를 ë°íí©ëë¤ + </para> + </refsect1> + </refentry> + <refentry id="function.fwrite"> + <refnamediv> + <refname>fwrite</refname> + <refpurpose>Binary-safe íì¼ ì°ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>fwrite</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>string <parameter>string</parameter> + </paramdef> + <paramdef>int <parameter> - <optional>length</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - <function>fwrite</function> writes the contents of - <parameter>string</parameter> to the file stream pointed to by - <parameter>fp</parameter>. If the <parameter>length</parameter> - argument is given, writing will stop after - <parameter>length</parameter> bytes have been written or the end - of <parameter>string</parameter> is reached, whichever comes - first. - </simpara> - <simpara> - Note that if the <parameter>length</parameter> argument is given, - then the <link - linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link> - configuration option will be ignored and no slashes will be - stripped from <parameter>string</parameter>. + <optional>length</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + <function>fwrite</function>ë <parameter>fp</parameter>ì ìí´ ì§ì ì´ ëë + íì¼ ì¤í¸ë¦¼ì <parameter>string</parameter>ì ë´ì©ì 기ë¡í©ëë¤. + <parameter>length</parameter>ì¸ìê° ì£¼ì´ì§ë©´ + <parameter>length</parameter>ë°ì´í¸ê° 기ë¡ì´ ëê±°ë + <parameter>string</parameter>ì ëì ëë¬íê±°ë 먼ì ëëë ê²ì ìí´ ê¸°ë¡íë ê²ì ë©ì¶¥ëë¤. + </simpara> + <simpara> + 주ìí ê²ì <parameter>length</parameter>ì¸ìê° ì£¼ì´ì§ë©´, + <link linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link>ì¤ì ìµì ì 무ìê° ëê³ + ì¬ëìë <parameter>string</parameter>ìì ì ê±°ëì§ ìê²ë©ëë¤. </simpara> - <simpara> - See also <function>fread</function>, <function>fopen</function>, + <simpara> + 참조<function>fread</function>, <function>fopen</function>, <function>fsockopen</function>, <function>popen</function>, and <function>fputs</function>. </simpara> - </refsect1> - </refentry> - - <refentry id="function.set-file-buffer"> - <refnamediv> - <refname>set_file_buffer</refname> - <refpurpose> - Sets file buffering on the given file pointer + </refsect1> + </refentry> + <refentry id="function.set-file-buffer"> + <refnamediv> + <refname>set_file_buffer</refname> + <refpurpose> + 주ì´ì§ íì¼ í¬ì¸í°ì íì¼ ë²í¼ë§ ì¤ì í기 </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>set_file_buffer</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - <paramdef>int <parameter>buffer</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <simpara> - Output using <function>fwrite</function> is normally buffered at - 8K. This means that if there are two processess wanting to write - to the same output stream (a file), each is paused after 8K of - data to allow the other to write. <function>set_file_buffer</function> - sets the buffering for write operations on the given filepointer - <parameter>fp</parameter> to <parameter>buffer</parameter> bytes. - If <parameter>buffer</parameter> is 0 then write operations are - unbuffered. This ensures that all writes with - <function>fwrite</function> are completed before other processes - are allowed to write to that output stream. + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>set_file_buffer</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + <paramdef>int <parameter>buffer</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + ì¶ë ¥ìì ì¬ì©ëë<function>fwrite</function>ë ë³´íµ 8Kë¡ ë²í¼ë§ ë©ëë¤. + ì´ê²ì íëì íì¼ì ê°ì ì¶ë ¥ ì¤í¸ë¦¼ì ì°ë ¤ê³ íë ëê°ì íë¡ì¸ì¤ê° ì¡´ì¬íë¤ë©´, ê°ê°ì 8Kì ë°ì´í°ë¥¼ ë²í¼ì ì ì¥íí ë¤ë¥¸ íëê° ì¸ ì ìëë¡ ì ì ë©ì¶ë¤ë ì미ì ëë¤. <function>set_file_buffer</function>ë <parameter>fp</parameter>ê° ì£¼ì´ì§ íì¼ í¬ì¸í° ìì <parameter>buffer</parameter>ë°ì´í¸ ë²í¼ë§ ì°ê¸°ìì ì ìíí ì ìëë¡ ì¤ì í©ëë¤ + ë§ì½ì <parameter>buffer</parameter>ê° 0 ì´ë©´ ì°ê¸°ìì ì ë²í¼ì ì ì¥ëì§ ììµëë¤. ì´ê²ì<function>fwrite</function>ë¡ ìííë 모ë ì°ê¸°ê° ë¤ë¥¸ íë¡ì¸ì¤ìì ì¶ë ¥ ì¤í¸ë¦¼ì 기ë¡íë ¤ë ê²ì íì©í기 ì ì ìë£ëëë¡ í©ëë¤. </simpara> - <simpara> + <simpara> The function returns 0 on success, or EOF if the request cannot be honored. </simpara> - <para> - The following example demonstrates how to use - <function>set_file_buffer</function> to create an unbuffered stream. + <para> + ìëì ìë ì´ë»ê² <function>set_file_buffer</function>를 ì¬ì©í´ì ë²í¼ëì§ ìë ì¤í¸ë¦¼ì ë§ëë ì§ ë³´ì¬ì¤ëë¤. <example> - <title><function>set_file_buffer</function> example</title> - <programlisting role="php"> + <title> + <function>set_file_buffer</function>ì</title> + <programlisting role="php"> $fp=fopen($file, "w"); if($fp){ set_file_buffer($fp, 0); @@ -1595,982 +1515,960 @@ fclose($fp); } </programlisting> - </example> - </para> - - <simpara> - See also <function>fopen</function>, <function>fwrite</function>. - </simpara> - </refsect1> - </refentry> - - <refentry id="function.is-dir"> - <refnamediv> - <refname>is_dir</refname> - <refpurpose>Tells whether the filename is a directory</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>is_dir</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns true if the filename exists and is a directory. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <para> - See also <function>is_file</function> and + </example> + </para> + <simpara> + 참조<function>fopen</function>, <function>fwrite</function>. + </simpara> + </refsect1> + </refentry> + <refentry id="function.is-dir"> + <refnamediv> + <refname>is_dir</refname> + <refpurpose>filename ì´ ëë í 리ì¸ì§ ìëì§ ì´ì¼ê¸°í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>is_dir</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filenameì´ ì¡´ì¬íê³ ëë í 리ì´ë©´ true를 ë°íí©ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ë ìì¸í ë´ì©ì ìê³ ì¶ì¼ë©´ + <function>clearstatcache</function>를 ë³´ì¸ì </para> + <para> + 참조<function>is_file</function>ê·¸ë¦¬ê³ <function>is_link</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.is-executable"> - <refnamediv> - <refname>is_executable</refname> - <refpurpose>Tells whether the filename is executable</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>is_executable</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns true if the filename exists and is executable. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <para> - See also <function>is_file</function> and + </refsect1> + </refentry> + <refentry id="function.is-executable"> + <refnamediv> + <refname>is_executable</refname> + <refpurpose>filenameì´ ì¤íê°ë¥í ê²ì¸ì§ ìëì§ ì´ì¼ê¸°í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>is_executable</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filenameì´ ì¡´ì¬íê³ , ì¤íê°ë¥í ê²ì´ë©´ true를 ë°íí©ëë¤ + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì¼ë©´ + <function>clearstatcache</function>를 ë³´ì¸ì </para> + <para> + 참조 <function>is_file</function> ê·¸ë¦¬ê³ <function>is_link</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.is-file"> - <refnamediv> - <refname>is_file</refname> - <refpurpose> - Tells whether the filename is a regular file + </refsect1> + </refentry> + <refentry id="function.is-file"> + <refnamediv> + <refname>is_file</refname> + <refpurpose> + filenameì´ ë³´íµ íì¼ì¸ì§ ìëì§ ì´ì¼ê¸°í기 </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>is_file</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns true if the filename exists and is a regular file. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>is_file</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filenameì´ ì¡´ì¬íê³ , ì ìì ì¸ ë³´íµì íì¼ì´ë¼ë©´(regular) true를 ë°í + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì¼ë©´ + <function>clearstatcache</function>를 ë³´ì¸ì. </para> - <para> - See also <function>is_dir</function> and + <para> + 참조<function>is_dir</function> ê·¸ë¦¬ê³ <function>is_link</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.is-link"> - <refnamediv> - <refname>is_link</refname> - <refpurpose> - Tells whether the filename is a symbolic link + </refsect1> + </refentry> + <refentry id="function.is-link"> + <refnamediv> + <refname>is_link</refname> + <refpurpose> + filenameì´ ì¬ë³¼ë¦ ë§í¬ì¸ì§ ìëì§ ì´ì¼ê¸°í기 </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>is_link</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns true if the filename exists and is a symbolic link. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>is_link</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filenameì´ ì¡´ì¬íê³ ì¬ë³¼ë¦ë§í¬ë íì¼ì´ë¼ë©´ true + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì¼ë©´ + <function>clearstatcache</function>를 ë³´ì¸ì. </para> - <para> - See also <function>is_dir</function> and + <para> + 참조 <function>is_dir</function> ê·¸ë¦¬ê³ <function>is_file</function>. </para> - <note> - <simpara> - This function does not work on Windows systems - </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.is-readable"> - <refnamediv> - <refname>is_readable</refname> - <refpurpose> - Tells whether the filename is readable + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> + </note> + </refsect1> + </refentry> + <refentry id="function.is-readable"> + <refnamediv> + <refname>is_readable</refname> + <refpurpose> + filenameì´ ì½ê¸° ê°ë¥í ê²ì¸ì§ ìëì§ ì´ì¼ê¸°í기 </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>is_readable</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns true if the filename exists and is readable. - </para> - <para> - Keep in mind that PHP may be accessing the file as the user - id that the web server runs as (often 'nobody'). Safe mode - limitations are not taken into account. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <para> - See also <function>is_writable</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.is-writable"> - <refnamediv> - <refname>is_writable</refname> - <refpurpose>Tells whether the filename is writable</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>is_writable</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Returns true if the filename exists and is writable. The - filename argument may be a directory name allowing you to check - if a directory is writeable. - </para> - <para> - Keep in mind that PHP may be accessing the file as the user id - that the web server runs as (often 'nobody'). Safe mode - limitations are not taken into account. - </para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - <para> - See also <function>is_readable</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.is-uploaded-file"> - <refnamediv> - <refname>is_uploaded_file</refname> - <refpurpose>Tells whether the file was uploaded via HTTP POST.</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>is_uploaded_file</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - - <para> - This function is available only in versions of PHP 3 after PHP - 3.0.16, and in versions of PHP 4 after 4.0.2. - </para> - - <para> - Returns true if the file named by <varname>filename</varname> was - uploaded via HTTP POST. This is useful to help ensure that a - malicious user hasn't tried to trick the script into working on - files upon which it should not be working--for instance, - <filename>/etc/passwd</filename>. - </para> - - <para> - This sort of check is especially important if there is any chance - that anything done with uploaded files could reveal their - contents to the user, or even to other users on the same - system. - </para> - - <para> - See also <function>move_uploaded_file</function>, and the section - <link linkend="features.file-upload">Handling file uploads</link> - for a simple usage example. - </para> - </refsect1> - </refentry> - - <refentry id="function.link"> - <refnamediv> - <refname>link</refname> - <refpurpose>Create a hard link</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>link</function></funcdef> - <paramdef>string <parameter>target</parameter></paramdef> - <paramdef>string <parameter>link</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>Link</function> creates a hard link.</para> - <para> - See also the <function>symlink</function> to create soft links, - and <function>readlink</function> along with - <function>linkinfo</function>. - </para> - <note> - <simpara> - This function does not work on Windows systems - </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.linkinfo"> - <refnamediv> - <refname>linkinfo</refname> - <refpurpose>Gets information about a link</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>linkinfo</function></funcdef> - <paramdef>string <parameter>path</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>Linkinfo</function> returns the st_dev field of the - UNIX C stat structure returned by the lstat system call. This - function is used to verify if a link (pointed to by - <parameter>path</parameter>) really exists (using the same method - as the S_ISLNK macro defined in stat.h). Returns 0 or FALSE in - case of error. - </para> - <para> - See also <function>symlink</function>, <function>link</function>, - and <function>readlink</function>. - </para> - <note> - <simpara> - This function does not work on Windows systems + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>is_readable</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filenameì´ ì¡´ì¬íê³ ì½ê¸° ê°ë¥í ê²ì´ë©´ true를 ë°íí©ëë¤ + </para> + <para> + ì¹ ìë²ê° ì주 'nobody' ë±ì¼ë¡ ì¤íë ë PHPë íì¼ì ì ê·¼í ë + ì¬ì©ì ìì´ëë¡ ì ê·¼í ìê° ìë¤ë ê²ì ëª ì¬íì¸ì.. + ìì 모ëì íê³ë ê³ì ì¼ë¡ ë°ìë¤ì¬ì§ì§ ìëë¤ë ê²ì ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì¼ë©´ + <function>clearstatcache</function> 를 ë³´ì¸ì </para> + <para> + 참조<function>is_writable</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.is-writable"> + <refnamediv> + <refname>is_writable</refname> + <refpurpose>filenameì´ ì°ê¸°ê°ë¥í ê²ì¸ì§ ìëì§ ì´ì¼ê¸°í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>is_writable</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filenameì´ ì¡´ì¬íê³ ì°ê¸°ê°ë¥í ê²ì´ë©´ true를 ë°íí©ëë¤. + filenameì ì¸ìë ëë í ë¦¬ê° ì°ê¸°ê°ë¥í ê²ì¼ë + ëë í 리ì´ë¦ì¸ì§ ì²´í¬í ì ìëë¡ í©ëë¤. + </para> + <para> + ì¹ ìë²ê° 'nobody' ë±ì¼ë¡ ì¤íì´ ë ë PHPë ì¬ì©ì ìì´ëë¡ + íì¼ì ì ê·¼íë ¤ê³ í ì ìë¤ë ê²ì ëª ì¬íì¸ì. + ìì 모ëì íê³ë ê³ì ì´ ë°ìë¤ì¬ì§ì§ ìëë¤ë ê²ì ëë¤. + </para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ì¼ë©´ + <function>clearstatcache</function>를 ë³´ì¸ì </para> + <para> + 참조<function>is_readable</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.is-uploaded-file"> + <refnamediv> + <refname>is_uploaded_file</refname> + <refpurpose>fileì´ HTTP POST를 íµí´ ì ë¡ëë ê²ì¸ì§ ìëì§ ì´ì¼ê¸°í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>is_uploaded_file</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + ì´ í¨ìë PHP 3 ììë 3.0.16 ì´í, PHP 4 ììë 4.0.2 ì´í ë²ì ë¶í° ì¬ì©ì´ ê°ë¥í©ëë¤.. + </para> + <para> + HTTP POST를 íµí´ ì ë¡ëëì´ íì¼ì ì´ë¦ì´ <varname>filename</varname>ì ìí´ ë¶ì¬ì§ ê²ì´ë©´ + true를 ë°íí©ëë¤. ì ìì ì¸ ì¬ì©ìê° ëìíì§ ë§ìì¼í íì¼ìì ëìíë ì¤í¬ë¦½í¸ë¥¼ ì¬ì©íë ¤ë + í¸ë¦ì ì°ì§ 못íëë¡ íëë° ì ì©í©ëë¤.--ì를 ë¤ìë©´, + <filename>/etc/passwd</filename>ê°ì ê²ì ëë¤. + </para> + <para> + ì ë¡ëë íì¼ì ì í ìëì§ ìê³ ì¬ì©ìë ê°ì ìì¤í ë´ì ë¤ë¥¸ ì¬ëìê² ì¡°ì°¨ë + ì ë¡ëë íì¼ì ë´ì©ì ê°ì¶ìê° ìë ì´ë¤ 기íë¼ë ìë¤ë©´ ì´ë°ìì¼ë¡ ì²´í¬íëê²ì í¹í ì¤ìí©ëë¤. + </para> + <para> + 참조<function>move_uploaded_file</function>, ê·¸ë¦¬ê³ ë¨ìí ì¬ì©ì를 ìí´ì + <link linkend="features.file-upload">Handling file uploads</link>ë¶ë¶ + + </para> + </refsect1> + </refentry> + <refentry id="function.link"> + <refnamediv> + <refname>link</refname> + <refpurpose>hard link ë§ë¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>link</function> + </funcdef> + <paramdef>string <parameter>target</parameter> + </paramdef> + <paramdef>string <parameter>link</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>Link</function> hard link를 ë§ëëë¤.</para> + <para> + 참조 <function>symlink</function>soft links를 ë§ëëë¤. + ê·¸ë¦¬ê³ <function>linkinfo</function>ì í¨ê» ìíëë<function>readlink</function> + </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ìì ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.mkdir"> - <refnamediv> - <refname>mkdir</refname> - <refpurpose>Makes directory</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>mkdir</function></funcdef> - <paramdef>string <parameter>pathname</parameter></paramdef> - <paramdef>int <parameter>mode</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Attempts to create the directory specified by pathname. - </para> - <para> - Note that you probably want to specify the mode as an - octal number, which means it should have a leading zero. - <informalexample> - <programlisting role="php"> -mkdir ("/path/to/my/dir", 0700); - </programlisting> - </informalexample> - </para> - <para> - Returns true on success and false on failure. - </para> - <para> - See also <function>rmdir</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.move-uploaded-file"> - <refnamediv> - <refname>move_uploaded_file</refname> - <refpurpose>Moves an uploaded file to a new location.</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>bool <function>move_uploaded_file</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>string <parameter>destination</parameter></paramdef> - </funcprototype> - </funcsynopsis> - - <para> - This function is available only in versions of PHP 3 after PHP - 3.0.16, and in versions of PHP 4 after 4.0.2. - </para> - - <para> - This function checks to ensure that the file designated by - <parameter>filename</parameter> is a valid upload file (meaning - that it was uploaded via PHP's HTTP POST upload mechanism). If - the file is valid, it will be moved to the filename given by - <parameter>destination</parameter>. - </para> - - <para> - If <parameter>filename</parameter> is not a valid upload file, - then no action will occur, and - <function>move_uploaded_file</function> will return - <literal>false</literal>. - </para> - - <para> - If <parameter>filename</parameter> is a valid upload file, but - cannot be moved for some reason, no action will occur, and - <function>move_uploaded_file</function> will return - <literal>false</literal>. Additionally, a warning will be issued. - </para> - - <para> - This sort of check is especially important if there is any chance - that anything done with uploaded files could reveal their - contents to the user, or even to other users on the same - system. - </para> - - <para> - See also <function>is_uploaded_file</function>, and the section - <link linkend="features.file-upload">Handling file uploads</link> - for a simple usage example. - </para> - </refsect1> - </refentry> - - <refentry id="function.pclose"> - <refnamediv> - <refname>pclose</refname> - <refpurpose>Closes process file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>pclose</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Closes a file pointer to a pipe opened by - <function>popen</function>. - </para> - <para> - The file pointer must be valid, and must have been returned by a - successful call to <function>popen</function>. - </para> - <para> - Returns the termination status of the process that was - run. - </para> - <para> - See also <function>popen</function>. + </note> + </refsect1> + </refentry> + <refentry id="function.linkinfo"> + <refnamediv> + <refname>linkinfo</refname> + <refpurpose>ë§í¬ ì ë³´ ê°ì ¸ì¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>linkinfo</function> + </funcdef> + <paramdef>string <parameter>path</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>Linkinfo</function>ë ë§ì§ë§ ìì¤í í¸ì¶ì ìí´ì ë°íì´ ëë ì ëì¤ C stat 구조체ì ëë¤. + ì´ í¨ìë ë§í¬(<parameter>path</parameter>ì ìí´ ì§ì ë)ê° ì¤ì ë¡ ìëì§ ê²ì¦íëë° ì¬ì©ì´ ë곤 í©ëë¤. + (stat.hì 매í¬ë¡ ì ìë S_ISLINK ì ê°ì ë°©ë²ì ì¬ì©í©ëë¤.) This + 0ì ë°ííê±°ë ì¤í¨ì FALSE를 ë°íí©ëë¤. + </para> + <para> + 참조<function>symlink</function>, <function>link</function>, + ê·¸ë¦¬ê³ <function>readlink</function>. + </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ìì ëìíì§ ììµëë¤. </simpara> + </note> + </refsect1> + </refentry> + <refentry id="function.mkdir"> + <refnamediv> + <refname>mkdir</refname> + <refpurpose>ëë í 리 ë§ë¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>mkdir</function> + </funcdef> + <paramdef>string <parameter>pathname</parameter> + </paramdef> + <paramdef>int <parameter>mode</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + pathnameì ëª ê¸°ë ì´ë¦ì¼ë¡ ëë í 리 ë§ë¤ê¸° </para> - </refsect1> - </refentry> - - <refentry id="function.popen"> - <refnamediv> - <refname>popen</refname> - <refpurpose>Opens process file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>popen</function></funcdef> - <paramdef>string <parameter>command</parameter></paramdef> - <paramdef>string <parameter>mode</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Opens a pipe to a process executed by forking the command given - by command. - </para> - <para> - Returns a file pointer identical to that returned by - <function>fopen</function>, except that it is unidirectional (may - only be used for reading or writing) and must be closed with - <function>pclose</function>. This pointer may be used with - <function>fgets</function>, <function>fgetss</function>, and - <function>fputs</function>. - </para> - <para> - If an error occurs, returns false. - </para> - <para> + <para> + 모ë를 ëª ê¸°íëë° 8ì§ì를 ì¬ì©íë ¤ê³ í ê²½ì°ì 주ìí ê²ì ìì 0ì´ ë¶ì´ì¼ íë¤ë ê²ì ëë¤. <informalexample> - <programlisting role="php"> + <programlisting role="php"> + mkdir ("/path/to/my/dir", 0700); + </programlisting> + </informalexample> + </para> + <para> + ì±ê³µíë©´ true, ì¤í¨íë©´ false를 ë°íí©ëë¤. + </para> + <para> + 참조<function>rmdir</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.move-uploaded-file"> + <refnamediv> + <refname>move_uploaded_file</refname> + <refpurpose>ì ë¡ëë íì¼ì ë¤ë¥¸ê³³ì¼ë¡ ì´ëí기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>bool <function>move_uploaded_file</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>string <parameter>destination</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + ì´ í¨ìë PHP 3 ììë 3.0.16 ì´í, PHP 4 ììë 4.0.2 ì´í ë²ì ë¶í° ì¬ì©í ì ììµëë¤. + </para> + <para> + ì´ í¨ìë <parameter>filename</parameter>ì ìí´ì ì§ì ë íì¼ì´ PHPì HTTP POST íì¼ ì ë¡ë ë©ì¹´ëì¦ì + íµí´ì ì ë¡ëë íì¼ì¸ì§ íì¸í©ëë¤. íì¼ì´ ì í¨í ê²ì¼ë <parameter>destination</parameter>ì 주ì´ì§ filenameì¼ë¡ ì´ëì´ ë©ëë¤ + </para> + <para> + <parameter>filename</parameter>ì´ ì í¨í ê²ì´ ìëë©´ ì무 ì¼ë ë°ìíì§ ììµëë¤. + ê·¸ë¦¬ê³ <function>move_uploaded_file</function>ë <literal>false</literal>를 ë°íí©ëë¤. + </para> + <para> + <parameter>filename</parameter>ì ì í¨íë ì´ë¤ ì´ì ê° ìì´ì ì´ëí ìê° ìì ë + ìë¬´ë° ì¼ë ë°ìíì§ ììµëë¤. ê·¸ë¦¬ê³ <function>move_uploaded_file</function>ì + <literal>false</literal>를 ë°íí©ëë¤. ë§ë¶ì¬ì ê²½ê³ ë¬¸ì´ ë³´ì¬ì§ëë¤. + </para> + <para> + ì´ë° ì²´í¬ë°©ë²ì íì¼ìë´ì©ì ì´ì©ì, ê°ì ìì¤í ë´ì ë¤ë¥¸ ì¬ëìê² íì¼ì + ìëì§ ìê³ íì¼ì ë´ì©ì ê°ì¶ ì ìë ì´ë¤ 기íê° ìë¤ë©´ í¹ë³í ëì± ì¤ìí©ëë¤. + </para> + <para> + 참조 <function>is_uploaded_file</function>, ê·¸ë¦¬ê³ ê°ë¨í ì¬ì©ë² ì를 ìí + <link linkend="features.file-upload">Handling file uploads</link>ë¶ë¶. + </para> + </refsect1> + </refentry> + <refentry id="function.pclose"> + <refnamediv> + <refname>pclose</refname> + <refpurpose>ì§íëë íì¼ í¬ì¸í° ë«ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>pclose</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>popen</function>ì ìí´ ì´ë ¤ì§ íì¼ í¬ì¸í°ë¥¼ íì´íë¡ ë«ê¸°. + </para> + <para> + íì¼ í¬ì¸í°ë ì í¨í ê²ì´ì´ì¼ íê³ <function>popen</function>ì¼ë¡ ì±ê³µì ì¼ë¡ í¸ì¶ëì´ ë°íë ê²ì´ì´ì¼ í©ëë¤. + </para> + <para> + ì¤íë íë¡ì¸ì¤ì ê²°ê³¼íµê³ë¥¼ ë°íí©ëë¤. + </para> + <para> + 참조<function>popen</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.popen"> + <refnamediv> + <refname>popen</refname> + <refpurpose>ì§íëë íì¼ í¬ì¸í°ë¥¼ ì´ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>popen</function> + </funcdef> + <paramdef>string <parameter>command</parameter> + </paramdef> + <paramdef>string <parameter>mode</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para>íì´í를 주ì´ì§ ëª ë ¹ì¼ë¡ ëª ë ¹ì í¬í¬í¨ì¼ë¡ ì¤íëë íë¡ì¸ì¤ë¡ ì´ì´ì¤ëë¤. + </para> + <para> + <function>fopen</function>ì ìí´ ë°íëë íì¼ í¬ì¸í°ì ê°ì§ë§, ë¨ë°©í¥(ì½ê¸°ë ì°ê¸° ëì¤ì íëë§ ì¬ì©í ì ìë)ì´ê³ + <function>pclose</function>ë¡ ë«íì¼ë§ íë¤ë ì ì´ ë¤ë¦ ëë¤. ì´ í¬ì¸í°ë <function>fgets</function>, <function>fgetss</function>, + <function>fputs</function>ê³¼ í¨ê» ì¬ì©í ì ììµëë¤. + </para> + <para> + ìë¬ê° ë°ìíë©´ false를 ë°íí©ëë¤. + </para> + <para> + <informalexample> + <programlisting role="php"> $fp = popen ("/bin/ls", "r"); </programlisting> - </informalexample> - </para> - <para> - See also <function>pclose</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.readfile"> - <refnamediv> - <refname>readfile</refname> - <refpurpose>Outputs a file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>readfile</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>int + </informalexample> + </para> + <para> + 참조<function>pclose</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.readfile"> + <refnamediv> + <refname>readfile</refname> + <refpurpose>íì¼ì ì¶ë ¥í©ëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>readfile</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>int <parameter> - <optional>use_include_path</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <para> - Reads a file and writes it to standard output. - </para> - <para> - Returns the number of bytes read from the file. If an error - occurs, false is returned and unless the function was called as - @readfile, an error message is printed. - </para> - <para> - If <parameter>filename</parameter> begins with "http://" - (not case sensitive), an HTTP 1.0 connection is opened to the - specified server and the text of the response is written to - standard output. - </para> - <para> - Does not handle HTTP redirects, so you must include trailing - slashes on directories. - </para> - <para> - If <parameter>filename</parameter> begins with "ftp://" - (not case sensitive), an ftp connection to the specified server is - opened and the requested file is written to standard output. If the server - does not support passive mode ftp, this will fail. - </para> - <para> - If <parameter>filename</parameter> begins with neither - of these strings, the file will be opened from the filesystem and - its contents written to standard output. - </para> - <para> - You can use the optional second parameter and set it to "1", if - you want to search for the file in the <link - linkend="ini.include-path">include_path</link>, too. - </para> - <para> - See also <function>fpassthru</function>, - <function>file</function>, <function>fopen</function>, - <function>include</function>, <function>require</function>, and - <function>virtual</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.readlink"> - <refnamediv> - <refname>readlink</refname> - <refpurpose>Returns the target of a symbolic link</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>readlink</function></funcdef> - <paramdef>string <parameter>path</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>Readlink</function> does the same as the readlink C - function and returns the contents of the symbolic link path or 0 - in case of error. - </para> - <para> - See also <function>symlink</function>, - <function>readlink</function> and - <function>linkinfo</function>. - </para> - <note> - <simpara> - This function does not work on Windows systems - </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.rename"> - <refnamediv> - <refname>rename</refname> - <refpurpose>Renames a file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>rename</function></funcdef> - <paramdef>string <parameter>oldname</parameter></paramdef> - <paramdef>string <parameter>newname</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Attempts to rename <parameter>oldname</parameter> to - <parameter>newname</parameter>. - </para> - <para> - Returns true on success and false on failure. + <optional>use_include_path</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + íì¼ì ì½ì´ì ì¼ë°ì¶ë ¥ì¼ë¡ ë´ë³´ë ëë¤. + </para> + <para> + íì¼ìì ì½ì ë°ì´í¸ì를 ë°íí©ëë¤. ìë¬ê° ë°ìíë©´ + false를 ë°ííê³ í¨ìê° @readfileë¡ ë°íëì§ ìë í ìë¬ ë©ìì§ê° íë¦°í¸ ë©ëë¤ + </para> + <para> + <parameter>filename</parameter>ì´ "http://"ë¡ ììì´ ëë©´ (ìëë°ìì´ ìë ê²½ì°ì), HTTP 1.0 ì ì§ì ë ìë²ë¡ ì°ê²°ì´ ë©ëë¤. ìëµë í ì¤í¸ë íì¤ ì¶ë ¥ì¼ë¡ ì°ì¬ì§ëë¤. + </para> + <para> + ëë í 리ì ì¬ëì¬ë¥¼ í¬í¨ìì¼ì HTTPê° ë¦¬ë¤ì´ë í¸ ëì§ ìëë¡ íì¸ì. + </para> + <para> + <parameter>filename</parameter>ì´ "ftp://"ë¡ ììì´ ëë©´ (ìëë°ìì´ ìë ê²½ì°ì), ftpë ì§ì ë ìë²ë¡ ì°ê²°ì´ ëê³ ìì²ë íì¼ì íì¤ ì¶ë ¥ì¼ë¡ ì°ì¬ì§ëë¤. ìë²ê° Passive 모ë를 ì§ìíì§ ìì¼ë©´ ì´ê²ì ì¤íë ì ììµëë¤. </para> - </refsect1> - </refentry> - - <refentry id="function.rewind"> - <refnamediv> - <refname>rewind</refname> - <refpurpose>Rewind the position of a file pointer</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>rewind</function></funcdef> - <paramdef>int <parameter>fp</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Sets the file position indicator for fp to the beginning of the - file stream.</para> <para> If an error occurs, returns 0.</para> - <para> The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function>. - </para> - <para> - See also <function>fseek</function> and - <function>ftell</function>. + <para> + <parameter>filename</parameter>ì´ ì´ì ê°ì 문ìì´ë¡ ììì´ ëì§ ìëë¤ë©´ íì¼ì´ íì¼ ìì¤í ìì ì´ë¦¬ê³ ë´ì©ì íì¤ ì¶ë ¥ì¼ë¡ ì°ì¬ì§ëë¤. </para> - </refsect1> - </refentry> - - - <refentry id="function.rmdir"> - <refnamediv> - <refname>rmdir</refname> - <refpurpose>Removes directory</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>rmdir</function></funcdef> - <paramdef>string <parameter>dirname</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Attempts to remove the directory named by pathname. The directory - must be empty, and the relevant permissions must permit. - this. - </para> - <para> - If an error occurs, returns 0. + <para> + <link linkend="ini.include-path">include_path</link>ìì íì¼ì ì°¾ê³ ì¶ì¼ë©´ ëë²ì§¸ 매ê°ë³ì를 "1"ë¡ ì¤ì í ì ë ììµëë¤. </para> - <para> - See also <function>mkdir</function>. + <para> + 참조<function>fpassthru</function>, + <function>file</function>, <function>fopen</function>, + <function>include</function>, <function>require</function>, <function>virtual</function>. </para> - </refsect1> - </refentry> - - <refentry id="function.stat"> - <refnamediv> - <refname>stat</refname> - <refpurpose>Gives information about a file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>stat</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Gathers the statistics of the file named by filename.</para> - <para> - Returns an array with the statistics of the file with the - following elements: + </refsect1> + </refentry> + <refentry id="function.readlink"> + <refnamediv> + <refname>readlink</refname> + <refpurpose>symbolic linkì target ë°í</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>readlink</function> + </funcdef> + <paramdef>string <parameter>path</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>Readlink</function>ë Cììì readlink í¨ìì ê°ì ì¼ì ìíí©ëë¤. symbolic linkì ê²½ë¡ë¥¼ ë°ííê±°ë ì¤í¨ì 0 ì ë°íí©ëë¤. + </para> + <para> + 참조<function>symlink</function>, + <function>readlink</function> ê·¸ë¦¬ê³ <function>linkinfo</function>. + </para> + <note> + <simpara> + ìëì°ì¦ìì ëìíì§ ììµëë¤.</simpara> + </note> + </refsect1> + </refentry> + <refentry id="function.rename"> + <refnamediv> + <refname>rename</refname> + <refpurpose>íì¼ì ì ì´ë¦ì¼ë¡ ê³ ì¹ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>rename</function> + </funcdef> + <paramdef>string <parameter>oldname</parameter> + </paramdef> + <paramdef>string <parameter>newname</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <parameter>oldname</parameter>ì <parameter>newname</parameter>ì¼ë¡ ë¤ì ì´ë¦ ë¶ì´ê³ ì í ë. + </para> + <para> + ì±ê³µíë©´ true, ì¤í¨íë©´ false를 ë°íí©ëë¤. + </para> + </refsect1> + </refentry> + <refentry id="function.rewind"> + <refnamediv> + <refname>rewind</refname> + <refpurpose>íì¼í¬ì¸í°ì ìì¹ë¥¼ ëë립ëë¤(rewind).</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>rewind</function> + </funcdef> + <paramdef>int <parameter>fp</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + fpì íì¼ ìì¹ ì¸¡ì ì를 íì¼ ì¤í¸ë¦¼ì ììë¶ë¶ì ìì¹íëë¡ ì¤ì í©ëë¤.</para> + <para>ìë¬ê° ë°ìíë©´ 0ì ë°íí©ëë¤.</para> + <para>íì¼ í¬ì¸í°ë ì í¨í ê²ì´ì´ì¼ íê³ <function>fopen</function>ì ìí´ ì±ê³µì ì¼ë¡ ì´ë ¤ì§ íì¼ì ê°ë¦¬ì¼ì¼ í©ëë¤. + </para> + <para> + 참조<function>fseek</function>ê·¸ë¦¬ê³ <function>ftell</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.rmdir"> + <refnamediv> + <refname>rmdir</refname> + <refpurpose>ëë í 리 ì ê±°í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>rmdir</function> + </funcdef> + <paramdef>string <parameter>dirname</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + pathnameì ìí´ ì´ë¦ì´ ë¶ì ëë í 리를 ì ê±°íë ¤ê³ í ë ëë í 리ë ë¹ì´ ìì´ì¼ íê³ ê´ë ¨ í¼ë¯¸ì ì ì´ê²ì´ ì¤íë ì ìëë¡ íê° ëì´ ìì´ì¼ í©ëë¤ . + </para> + <para> + ìë¬ê° ë°ìíë©´ 0ì ë°íí©ëë¤. + </para> + <para> + 참조: <function>mkdir</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.stat"> + <refnamediv> + <refname>stat</refname> + <refpurpose>fileì ëí ì ë³´ ì ê³µ</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>stat</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filenameì ìí´ ì´ë¦ì´ ë¶ì íì¼ì ëí íµê³ìë£ ëª¨ì¼ê¸°.</para> + <para> + ë¤ìì ììëë¡ íì¼ì ëí íµê³ë¥¼ ë°°ì´ë¡ ë°íí©ëë¤.: <orderedlist> - <listitem><simpara>device</simpara></listitem> - <listitem><simpara>inode</simpara></listitem> - <listitem><simpara>inode protection mode</simpara></listitem> - <listitem><simpara>number of links</simpara></listitem> - <listitem><simpara>user id of owner</simpara></listitem> - <listitem><simpara>group id owner</simpara></listitem> - <listitem><simpara>device type if inode device *</simpara></listitem> - <listitem><simpara>size in bytes</simpara></listitem> - <listitem><simpara>time of last access</simpara></listitem> - <listitem><simpara>time of last modification</simpara></listitem> - <listitem><simpara>time of last change</simpara></listitem> - <listitem><simpara>blocksize for filesystem I/O *</simpara></listitem> - <listitem><simpara>number of blocks allocated</simpara></listitem> - </orderedlist> - * - only valid on systems supporting the st_blksize type--other - systems (i.e. Windows) return -1</para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. - </para> - </refsect1> - </refentry> - - <refentry id="function.lstat"> - <refnamediv> - <refname>lstat</refname> - <refpurpose> - Gives information about a file or symbolic link - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>array <function>lstat</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> + <listitem> + <simpara>ì¥ì¹(device)</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë(inode)</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë ë³´í¸ ëª¨ë(inode protection mode)</simpara> + </listitem> + <listitem> + <simpara>ë§í¬ì ê°¯ì</simpara> + </listitem> + <listitem> + <simpara>ìì ìì ì¬ì©ì ìì´ë</simpara> + </listitem> + <listitem> + <simpara>ìì ìì 그룹 ìì´ë</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë ì¥ì¹(inode device)ì´ë©´ ì¥ì¹ íì (device type) *</simpara> + </listitem> + <listitem> + <simpara>ë°ì´í¸ ë¨ì í¬ê¸°</simpara> + </listitem> + <listitem> + <simpara>ìµì¢ ì ì ìê°</simpara> + </listitem> + <listitem> + <simpara>ìµì¢ ìì ìê°</simpara> + </listitem> + <listitem> + <simpara>ìµì¢ ë³ê²½ ìê°</simpara> + </listitem> + <listitem> + <simpara>íì¼ìì¤í ì ì¶ë ¥(filesystem I/O)ìì ë¸ë¡í¬ê¸° *</simpara> + </listitem> + <listitem> + <simpara>í ë¹ë ë¸ë¡ì ì</simpara> + </listitem> + </orderedlist> + * - st_blksize typeì ì§ìíë ìì¤í ìë§ ì í¨í©ëë¤--ë¤ë¥¸ ìì¤í (ì를 ë¤ì´ ìëì°ì¦ ê°ì)ììë -1 ì ë°íí©ëë¤</para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ë¤ë©´ <function>clearstatcache</function>ì ë³´ììì¤. + </para> + </refsect1> + </refentry> + <refentry id="function.lstat"> + <refnamediv> + <refname>lstat</refname> + <refpurpose> + íì¼ì´ë ì¬ë³¼ë¦ ë§í¬ì ê´í ì 보를 ì ê³µ </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>array <function>lstat</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> Gathers the statistics of the file or symbolic link named by - filename. This function is identical to the - <function>stat</function> function except that if the - <parameter>filename</parameter> parameter is a symbolic link, the - status of the symbolic link is returned, not the status of the - file pointed to by the symbolic link. - </para> - <para> - Returns an array with the statistics of the file with the - following elements: - <orderedlist> - <listitem><simpara>device</simpara></listitem> - <listitem><simpara>inode</simpara></listitem> - <listitem><simpara>inode protection mode</simpara></listitem> - <listitem><simpara>number of links</simpara></listitem> - <listitem><simpara>user id of owner</simpara></listitem> - <listitem><simpara>group id owner</simpara></listitem> - <listitem><simpara>device type if inode device *</simpara></listitem> - <listitem><simpara>size in bytes</simpara></listitem> - <listitem><simpara>time of last access</simpara></listitem> - <listitem><simpara>time of last modification</simpara></listitem> - <listitem><simpara>time of last change</simpara></listitem> - <listitem><simpara>blocksize for filesystem I/O *</simpara></listitem> - <listitem><simpara>number of blocks allocated</simpara></listitem> - </orderedlist> - * - only valid on systems supporting the st_blksize type--other - systems (i.e. Windows) return -1</para> - <para> - The results of this function are cached. See - <function>clearstatcache</function> for more details. + filenameì ìí´ ì´ë¦ì´ ë¶ì íì¼ì´ë ì¬ë³¼ë¦ ë§í¬ì ê´í íµê³ìë£ë¥¼ 모ìëë¤. ì´ í¨ìë <parameter>filename</parameter>매ê°ë³ìê° ì¬ë³¼ë¦ ë§í¬ë©´ ì¬ë³¼ë¦ ë§í¬ê° ê°ë¦¬í¤ë íì¼ì ìíê° ìëë¼ ì¬ë³¼ë¦ ë§í¬ì ìíê° ë°íëë ê²ì ì ì¸íë©´ <function>stat</function>í¨ìì ê°ìµëë¤. </para> - </refsect1> - </refentry> - - <refentry id="function.realpath"> - <refnamediv> - <refname>realpath</refname> - <refpurpose>Returns canonicalized absolute pathname</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>realpath</function></funcdef> - <paramdef>string <parameter>path</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>realpath</function> expands all symbolic links and - resolves references to '/./', '/../' and extra '/' characters in - the input <parameter>path</parameter> and return the canonicalized - absolute pathname. The resulting path will have no symbolic link, - '/./' or '/../' components. - </para> - <para> - <example> - <title><function>realpath</function> example</title> - <programlisting role="php"> + <para> + íì¼ì íµê³ìë£ê° ìëì ê°ì ììë¤ë¡ ë°°ì´ë¡ ë°íë©ëë¤: + <orderedlist> + <listitem> + <simpara>ì¥ì¹(device)</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë(inode)</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë ë³´í¸ ëª¨ë(inode protection mode)</simpara> + </listitem> + <listitem> + <simpara>ë§í¬ì ê°¯ì</simpara> + </listitem> + <listitem> + <simpara>ìì ìì ì¬ì©ì ìì´ë</simpara> + </listitem> + <listitem> + <simpara>ìì ìì 그룹 ìì´ë</simpara> + </listitem> + <listitem> + <simpara>ìì´ë ¸ë ì¥ì¹(inode device)ë¼ë©´ ì¥ì¹ì íì (device type) *</simpara> + </listitem> + <listitem> + <simpara>ë°ì´í¸ë¨ìì í¬ê¸°</simpara> + </listitem> + <listitem> + <simpara>ìµì¢ ì ì ìê°</simpara> + </listitem> + <listitem> + <simpara>ìµì¢ ìì ìê°</simpara> + </listitem> + <listitem> + <simpara>ìµì¢ ë³ê²½ ìê°</simpara> + </listitem> + <listitem> + <simpara>íì¼ìì¤í ì ì¶ë ¥(filesystem I/O)ìì ë¸ë¡ í¬ê¸° *</simpara> + </listitem> + <listitem> + <simpara>í ë¹ë ë¸ë¡ì ì</simpara> + </listitem> + </orderedlist> + * - st_blksize typeì ì§ìíë ìì¤í ìë§ ì í¨í©ëë¤ -- ë¤ë¥¸ ìì¤í ë¤(ì를 ë¤ì´ ìëì°ì¦ ê°ì) ìì¤í ììë -1 ì ë°íí©ëë¤.</para> + <para> + ì´ í¨ìì ì¤íê²°ê³¼ë ìºìê° ë©ëë¤. ì¢ ë ìì¸í ë´ì©ì ìê³ ì¶ë¤ë©´ <function>clearstatcache</function>ì ë³´ììì¤. </para> + </refsect1> + </refentry> + <refentry id="function.realpath"> + <refnamediv> + <refname>realpath</refname> + <refpurpose>íì¤íë ì ë ê²½ë¡ëª ì ë°íí©ëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>realpath</function> + </funcdef> + <paramdef>string <parameter>path</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>realpath</function>ë <parameter>path</parameter>ë¡ ì ë ¥ë ê²½ë¡ìì 모ë ì¬ë³¼ë¦ ë§í¬ì '/./', '/../'ë¡ ì°¸ì¡°ë ê²½ë¡ ê·¸ë¦¬ê³ ê·¸ ì¸ì '/' ì íì¥í´ì íì¤íë ì ë ê²½ë¡ëª ì ë°íí©ëë¤. ì´ë ê² í´ì ëì¨ ê²½ë¡ëª ì ì¬ë³¼ë¦ ì¼í¬ì '/./' ëë '/../' ë±ì í¬í¨íê³ ìì§ ììµëë¤. </para> + <para> + <example> + <title> + <function>realpath</function>ì문</title> + <programlisting role="php"> $real_path = realpath ("../../index.php"); </programlisting> - </example> + </example> + </para> + </refsect1> + </refentry> + <refentry id="function.symlink"> + <refnamediv> + <refname>symlink</refname> + <refpurpose>ì¬ë³¼ë¦ ë§í¬ ë§ë¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>symlink</function> + </funcdef> + <paramdef>string <parameter>target</parameter> + </paramdef> + <paramdef>string <parameter>link</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>symlink</function>ë í¹ì í ì´ë¦ì <parameter>link</parameter>ë¡ ìë <parameter>target</parameter>ìì ì¬ë³¼ë¦ ë§í¬ë¥¼ ë§ëëë¤. + </para> + <para> + 참조 íëë§í¬ë¥¼ ë§ëë<function>link</function>, + ê·¸ë¦¬ê³ <function>linkinfo</function>ì ê°ì´ ìë<function>readlink</function>. + </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> + </note> + </refsect1> + </refentry> + <refentry id="function.tempnam"> + <refnamediv> + <refname>tempnam</refname> + <refpurpose>ì ì¼í íì¼ ì´ë¦ ë§ë¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>tempnam</function> + </funcdef> + <paramdef>string <parameter>dir</parameter> + </paramdef> + <paramdef>string <parameter>prefix</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + í¹ì ëë í 리ìì ì ì¼í ìì íì¼ì´ë¦ì ë§ëëë¤. + ëë í ë¦¬ê° ì¡´ì¬íì§ ìì¼ë©´ <function>tempnam</function>ì ìì¤í ì ìì ëë í 리ìì íì¼ ì´ë¦ì ë§ëëë¤. + </para> + <para> + <function>tempnam</function>í¨ìì íë ì¼ì ìì¤í ìì¡´ì ì ëë¤. ìëì°ì¦ìì TMP íê²½ë³ìë <parameter>dir</parameter>매ê°ë³ì를 ë°ì´ëê³ , 리ë ì¤ìì + TMPDIR íê²½ë³ìê° ì¡´ì¬íê³ ìë ê²ì ê°ë¦¬í¤ê³ ìë¤ë©´ SVR4ê° íì <parameter>dir</parameter> 매ê°ë³ì를 ì¬ì©íë ¤ê³ íë ëìì ììì TMPDIR íê²½ë³ìê° ì¤íë©ëë¤. 미ì¬ì©ì ë¶ë¶ì´ ìë¤ë©´ tempnam(3) í¨ìë¶ë¶ì ìì¤í 문ì를 ì°¸ê³ íììì¤. </para> - </refsect1> - </refentry> - - <refentry id="function.symlink"> - <refnamediv> - <refname>symlink</refname> - <refpurpose>Creates a symbolic link</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>symlink</function></funcdef> - <paramdef>string <parameter>target</parameter></paramdef> - <paramdef>string <parameter>link</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>symlink</function> creates a symbolic link - from the existing <parameter>target</parameter> with - the specified name <parameter>link</parameter>. - </para> - <para> - See also <function>link</function> to create hard links, - and <function>readlink</function> along with - <function>linkinfo</function>. - </para> - <note> - <simpara> - This function does not work on Windows systems. - </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.tempnam"> - <refnamediv> - <refname>tempnam</refname> - <refpurpose>Creates unique file name</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>string <function>tempnam</function></funcdef> - <paramdef>string <parameter>dir</parameter></paramdef> - <paramdef>string <parameter>prefix</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Creates a unique temporary filename in the specified directory. - If the directory does not exist, <function>tempnam</function> may - generate a filename in the system's temporary directory. - </para> - <para> - The behaviour of the <function>tempnam</function> function is - system dependent. On Windows the TMP environment variable will - override the <parameter>dir</parameter> parameter, on Linux the - TMPDIR environment variable has precedence, while SVR4 will always - use your <parameter>dir</parameter> parameter if the directory it - points to exists. Consult your system documentation on the - tempnam(3) function if in doubt. - </para> - <para> - Returns the new temporary filename, or the null string on - failure. + <para> + ìë¡ì´ ìì íì¼ì´ë¦ì´ë ë 문ìì´ì ë°íí©ëë¤. <example> - <title><function>Tempnam</function> example</title> - <programlisting role="php"> + <title> + <function>Tempnam</function>ì문</title> + <programlisting role="php"> $tmpfname = tempnam ("/tmp", "FOO"); </programlisting> - </example> - </para> - <note> - <simpara> - This function's behavior changed in 4.0.3. The temporary file is also - created to avoid a race condition where the file might appear in the - filesystem between the time the string was generated and before the - the script gets around to creating the file. + </example> + </para> + <note> + <simpara> + ì´ í¨ìë 4.0.3ìì ëìì´ ë³ê²½ëììµë. ìì íì¼ì 문ìì´ì´ ë§ë¤ì´ì§ê³ ê·¸ 문ìì´ì´ íì¼ì ìì±íë ¤ê³ íë ì¤ê°ì íì¼ì´ íì¼ ìì¤í ì ë³´ì¬ì ¸ì¼ íë ìì¹ìì ì§íìí를 ëíë´ì§ ììµëë¤. </simpara> - </note> - <para> - See also <function>tmpfile</function>. - </para> - </refsect1> - </refentry> - - <refentry id="function.tmpfile"> - <refnamediv> - <refname>tmpfile</refname> - <refpurpose>Creates a temporary file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>tmpfile</function></funcdef> - <paramdef>void</paramdef> - </funcprototype> - </funcsynopsis> - <para> + </note> + <para> + 참조 <function>tmpfile</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.tmpfile"> + <refnamediv> + <refname>tmpfile</refname> + <refpurpose>ìì íì¼ ë§ë¤ê¸°</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>tmpfile</function> + </funcdef> + <paramdef>void</paramdef> + </funcprototype> + </funcsynopsis> + <para> Creates a temporary file with an unique name in write mode, returning a file handle similar to the one returned by - <function>fopen</function>. - The file is automatically removed when closed (using - <function>fclose</function>), or when the script ends. - </para> - <para> - For details, consult your system documentation on the - <literal>tmpfile(3)</literal> function, as well as the - <filename>stdio.h</filename> header file. + <function>fopen</function>ì ìí´ ë°íëê²ê³¼ ë¹ì·í íì¼í¸ë¤ì ë°ííë©° ì°ê¸°ëª¨ëìì ì ì¼í ììíì¼ì ìì±í©ëë¤. + ì´ íì¼ì ì¤í¬ë¦½í¸ê° ì¢ ë£ëê±°ë ë«íìë (<function>fclose</function>ì ì¬ì©í©ëë¤) ìëì¼ë¡ ì ê±°ë©ëë¤. </para> - <para> - See also <function>tempnam</function>. + <para> + ìì¸í ììë³´ë ¤ë©´ <filename>stdio.h</filename> í¤ëíì¼ ê°ì <literal>tmpfile(3)</literal>í¨ìì ìì¤í 문ì를 ì´í´ ë³´ììì¤ </para> - </refsect1> - </refentry> - - - <refentry id="function.touch"> - <refnamediv> - <refname>touch</refname> - <refpurpose>Sets modification time of file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>touch</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - <paramdef>int + <para> + 참조 <function>tempnam</function>. + </para> + </refsect1> + </refentry> + <refentry id="function.touch"> + <refnamediv> + <refname>touch</refname> + <refpurpose>íì¼ì ìì ìê°ì ì¤ì í©ëë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>touch</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + <paramdef>int <parameter> - <optional>time</optional> - </parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <para> - Attempts to set the modification time of the file named by - filename to the value given by time. If the option time is not - given, uses the present time. + <optional>time</optional> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + filename ì ìí´ ì´ë¦ë¶ì¬ì§ fileì ìì ìê°ì 주ì´ì§ ìê°ì¼ë¡ ì¤ì íë ¤ê³ í ë ì¬ì©í©ëë¤. ìê°ì ìµì ì¼ë¡ ì¤ì íì§ ìì¼ë©´ íì¬ ìê°ì ì¬ì©í©ëë¤. </para> - <para> - If the file does not exist, it is created. + <para> + íì¼ì´ ì¡´ì¬íì§ ìì¼ë©´ íì¼ì ë§ëëë¤. </para> - <para> - Returns true on success and false otherwise. + <para> + ì±ê³µíë©´ true 를 ë°ííê³ ê·¸ë ì§ ìì¼ë©´ false를 ë°íí©ëë¤. <example> - <title><function>Touch</function> example</title> - <programlisting role="php"> + <title> + <function>Touch</function>ì문</title> + <programlisting role="php"> if (touch ($FileName)) { - print "$FileName modification time has been - changed to todays date and time"; + print "$FileName ì ì¤ë ë ì§ì ìê°ì¼ë¡ ë³ê²½ëììµëë¤."; } else { - print "Sorry Could Not change modification time of $FileName"; + print "ì£ì¡í©ëë¤. $FileNameì ìì ìê°ì ë°ê¾¸ì§ 못íìµëë¤."; } </programlisting> - </example> - </para> - </refsect1> - </refentry> - - <refentry id="function.umask"> - <refnamediv> - <refname>umask</refname> - <refpurpose>Changes the current umask</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>umask</function></funcdef> - <paramdef>int <parameter>mask</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - <function>Umask</function> sets PHP's umask to mask & 0777 and - returns the old umask. When PHP is being used as a server module, - the umask is restored when each request is finished. - </para> - <para> - <function>Umask</function> without arguments simply returns the - current umask. - </para> - <note> - <simpara> - This function may not work on Windows systems. + </example> + </para> + </refsect1> + </refentry> + <refentry id="function.umask"> + <refnamediv> + <refname>umask</refname> + <refpurpose>íì¬ì umask를 ë³ê²½í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>umask</function> + </funcdef> + <paramdef>int <parameter>mask</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>Umask</function>ë PHPì umask를 mask & 0777ë¡ ë°ê¾¸ê³ ì´ì ì umask를 ë°íí©ëë¤. PHPê° ìë² ëª¨ëë¡ ì¬ì©ë ë umaskë 매 ìì²(request)ê° ëë ë ë§ë¤ ì ì¥ì´ ë©ëë¤. + </para> + <para> + ì¸ìê° ìë <function>Umask</function>ë ë¨ìí íì¬ì umask를 ë°íí©ëë¤. + </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - <refentry id="function.unlink"> - <refnamediv> - <refname>unlink</refname> - <refpurpose>Deletes a file</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef>int <function>unlink</function></funcdef> - <paramdef>string <parameter>filename</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <para> - Deletes <parameter>filename</parameter>. Similar to the Unix C - unlink() function. - </para> - <para> - Returns 0 or FALSE on an error. - </para> - <para> - See also <function>rmdir</function> for removing directories. - </para> - <note> - <simpara> - This function may not work on Windows systems. + </note> + </refsect1> + </refentry> + <refentry id="function.unlink"> + <refnamediv> + <refname>unlink</refname> + <refpurpose>íì¼ì ìì í기</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>unlink</function> + </funcdef> + <paramdef>string <parameter>filename</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <parameter>filename</parameter>ì ìì í©ëë¤. Unix Cì unlink() í¨ìì ë¹ì·í©ëë¤. + </para> + <para> + 0 ì´ë FALSE를 ë°íí©ëë¤. + </para> + <para> + 참조 ëë í 리를 ì ê±°íëë° <function>rmdir</function> + </para> + <note> + <simpara> + ì´ í¨ìë ìëì°ì¦ììë ëìíì§ ììµëë¤. </simpara> - </note> - </refsect1> - </refentry> - - </reference> - + </note> + </refsect1> + </refentry> +</reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -2586,4 +2484,4 @@ sgml-local-catalogs:nil sgml-local-ecat-files:nil End: ---> +--> \ No newline at end of file