cvs: phpdoc-hu /reference/filesystem/functions feof.xml

[email protected] ("Lajos Cseppent?")
Newsgroups php.doc.hu
Message-ID <cvschappy1170169819@cvsserver>
chappy		Tue Jan 30 15:10:19 2007 UTC

  Added files:                 
    /phpdoc-hu/reference/filesystem/functions	feof.xml 
  Log:
  sync
  

http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/filesystem/functions/feof.xml?view=markup&rev=1.1
Index: phpdoc-hu/reference/filesystem/functions/feof.xml
+++ phpdoc-hu/reference/filesystem/functions/feof.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.12 Maintainer: chappy Status: ready -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
  <refentry id="function.feof">
   <refnamediv>
    <refname>feof</refname>
    <refpurpose>Megállapítja, hogy a fájl pointer a fájl végén van-e</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Leírás</title>
     <methodsynopsis>
      <type>bool</type><methodname>feof</methodname>
      <methodparam><type>resource</type><parameter>handle</parameter></methodparam>
     </methodsynopsis>
    <para>
     &true;-val tér vissza, ha a fájl pointer a fájl végén (EOF) van, vagy ha hiba történt
     (socket idõtúllépést beleértve); máskülönben &false;-t ad.
    </para>
     <warning>
      <simpara>
       Ha a kapcsolatot <function>fsockopen</function> fügvénnyel nyitottad meg, és a szerver ezt nem zárta be, 
	   a <function>feof</function> függvény addig vár, amig el nem éri az megszabott idõtúllépési idõt, 
	   és &true;-val tér vissza. Az alapértelmezett idõtúllépési idõ 60 másodperc.
       Használhatod a <function>stream_set_timeout</function> függvényt ennek az értéknek a 
       megváltoztatásához.
      </simpara>
     </warning>
     &fs.validfp.all;
     <warning>
      <para>
       Ha rossz fájl pointert adtál át, ez végtelen ciklust okozhat, mert 
       ez a függvény hiba esetén &true;-val tér vissza
       <example>
        <title><function>feof</function> példa nem valódi fájl pointerrel</title>
        <programlisting role="php">
 <![CDATA[
<?php
// ha a fájl nem olvasható vagy nem létezik, az fopen függvény FALSE-t ad vissza
$file = @fopen("no_such_file", "r");

// az fopen függvénytõl kapott FALSE figyelmeztetést fog okozni és itt végtelen lesz az ismétlõdések száma
while (!feof($file)) {
}

fclose($file);
?>
]]>
        </programlisting>
       </example>
      </para>
     </warning>
   </refsect1>
  </refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.