cvs: phpdoc-pl /reference/filesystem/functions filetype.xml

From: Date: Sun, 27 Feb 2005 01:09:28 +0000
Subject: cvs: phpdoc-pl /reference/filesystem/functions filetype.xml
Groups: php.doc.pl 
Request: Send a blank email to doc-pl+get-485@lists.php.net to get a copy of this message
leszek Sat Feb 26 20:09:28 2005 EDT Modified files: /phpdoc-pl/reference/filesystem/functions filetype.xml Log: [adi] update to rev 1.10 http://cvs.php.net/diff.php/phpdoc-pl/reference/filesystem/functions/filetype.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-pl/reference/filesystem/functions/filetype.xml diff -u phpdoc-pl/reference/filesystem/functions/filetype.xml:1.2 phpdoc-pl/reference/filesystem/functions/filetype.xml:1.3 --- phpdoc-pl/reference/filesystem/functions/filetype.xml:1.2 Wed Apr 17 03:16:09 2002 +++ phpdoc-pl/reference/filesystem/functions/filetype.xml Sat Feb 26 20:09:27 2005 @@ -1,8 +1,6 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- splitted from ./pl/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'filetype' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: adi Status: partial --> -<!-- OLD-Revision: 1.115/EN.1.2 --> +<!-- EN-Revision: 1.10 Maintainer: adi Status: ready --> +<!-- $Revision: 1.3 $ --> <refentry id="function.filetype"> <refnamediv> <refname>filetype</refname> @@ -16,17 +14,36 @@ </methodsynopsis> <para> Zwraca typ pliku. Mo¿liwe warto¶ci to fifo, char, dir, block, - link, file, and unknown.</para> <para> Zwraca &false; - w przypadku b³êdu. + link, file i unknown. </para> <para> - Wyniki tej funkcji s± cachowane. Zobacz - <function>clearstatcache</function> aby uzyskaæ wiêcej szczegó³ów. + Zwraca &false; je¶li wyst±pi³ b³±d. <function>filetype</function> równie¿ + utworzy wiadomo¶æ <constant>E_NOTICE</constant> je¶li wywo³anie stat siê + nie powiedzie lub gdy plik ma tym nieznany (unknown). + </para> + &note.clearstatcache; + + &tip.fopen-wrapper.stat; + <para> + <example> +<title><function>filetype</function> przyk³ad</title> + <programlisting role="php"> + <![CDATA[ + <?php + + echo filetype('/etc/passwd'); // plik + echo filetype('/etc/'); // katalog + + ?> + ]]> + </programlisting> + </example> + </para> <simpara> - Ta funkcja nie dzia³a - <link linkend="features.remote-files">na zdalnych plikach</link>; sprawdzany - plik musi byæ dostêpny przez system plików serwera. + Patrz tak¿e: <function>is_dir</function>, <function>is_file</function>, + <function>is_link</function>, <function>file_exists</function>, + <function>stat</function> i <function>mime_content_type</function>. </simpara> </refsect1> </refentry>

« previous php.doc.pl (#485) next »