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

From: Date: Sun, 27 Feb 2005 01:09:32 +0000
Subject: cvs: phpdoc-pl /reference/filesystem/functions ftell.xml
Groups: php.doc.pl 
Request: Send a blank email to doc-pl+get-487@lists.php.net to get a copy of this message
leszek Sat Feb 26 20:09:32 2005 EDT Modified files: /phpdoc-pl/reference/filesystem/functions ftell.xml Log: [adi] update to rev 1.7 http://cvs.php.net/diff.php/phpdoc-pl/reference/filesystem/functions/ftell.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-pl/reference/filesystem/functions/ftell.xml diff -u phpdoc-pl/reference/filesystem/functions/ftell.xml:1.2 phpdoc-pl/reference/filesystem/functions/ftell.xml:1.3 --- phpdoc-pl/reference/filesystem/functions/ftell.xml:1.2 Wed Apr 17 03:16:09 2002 +++ phpdoc-pl/reference/filesystem/functions/ftell.xml Sat Feb 26 20:09:32 2005 @@ -1,34 +1,55 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- splitted from ./pl/functions/filesystem.xml, last change in rev 1.1 --> -<!-- last change to 'ftell' 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.7 Maintainer: adi Status: ready --> +<!-- $Revision: 1.3 $ --> <refentry id="function.ftell"> <refnamediv> <refname>ftell</refname> - <refpurpose>Tells file pointer read/write position</refpurpose> + <refpurpose>Mówi o pozycji odczyt/zapis wska¼nika pliku</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>Opis</title> <methodsynopsis> <type>int</type><methodname>ftell</methodname> - <methodparam><type>int</type><parameter>fp</parameter></methodparam> + <methodparam><type>resource</type><parameter>uchwyt</parameter></methodparam> </methodsynopsis> <para> - Returns the position of the file pointer referenced by fp; i.e., - its offset into the file stream. + Zwraca pozycjê wska¼nika pliku wskazywanego przez <parameter>uchwyt</parameter>; np. + jego ofset w strumieniu pliku. </para> <para> - If an error occurs, returns &false;. + W przypadku b³êdu, zwraca &false;. </para> <para> - The file pointer must be valid, and must point to a file - successfully opened by <function>fopen</function> or + Wska¼nik pliku musi byæ prawid³owy i musi wskazywaæ na + poprawnie otworzony plik przez <function>fopen</function> lub <function>popen</function>. - </para> + <function>ftell</function> zwraca niezdefiniowane wyniki dla + strumieni tylko do dopisywania (otwartych z flag± "a"). + </para> + <para> + <example> + <title><function>ftell</function> przyk³ad</title> + <programlisting role="php"> + <![CDATA[ + <?php + + // otwarcie pliku i odczytanie jaki¶ danych + $fp = fopen("/etc/passwd", "r"); + $data = fgets($fp, 12); + + // gdzie jeste¶my ? + echo ftell($fp); // 11 + + fclose($fp); + + ?> + ]]> + </programlisting> + </example> + <para> - See also <function>fopen</function>, <function>popen</function>, - <function>fseek</function> and <function>rewind</function>. + Patrz tak¿e: <function>fopen</function>, <function>popen</function>, + <function>fseek</function> i <function>rewind</function>. </para> </refsect1> </refentry>

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