cvs: phpdoc-hu /reference/filesystem/functions fgets.xml fgetss.xml

[email protected] ("Lajos Cseppent?")
Newsgroups php.doc.hu
Message-ID <cvschappy1170573769@cvsserver>
chappy		Sun Feb  4 07:22:49 2007 UTC

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

http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/filesystem/functions/fgetss.xml?view=markup&rev=1.1
Index: phpdoc-hu/reference/filesystem/functions/fgetss.xml
+++ phpdoc-hu/reference/filesystem/functions/fgetss.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.7 Maintainer: chappy Status: ready -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.fgetss">
 <refnamediv>
  <refname>fgetss</refname>
  <refpurpose>Kinyer egy sort a fájl pointerbõl és kiszedi belõle a HTML tageket</refpurpose>
 </refnamediv>
 <refsect1>
  <title>Leírás</title>
  <methodsynopsis>
   <type>string</type><methodname>fgetss</methodname>
   <methodparam><type>resource</type><parameter>handle</parameter></methodparam>
   <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam>
   <methodparam choice="opt"><type>string</type><parameter>allowable_tags</parameter></methodparam>
  </methodsynopsis>
  <para>
   Ugyanaz, mint a <function>fgets</function> függvény, kivéve azt, hogy a fgetss
   függvény megpróbálja eltávolítani az összes HTML és PHP tageket a szövegbõl, 
   melyet beolvasott.
  </para>
  <para>
   Használhatod az opcinális harmadik paramétert, amiben megadhatod azokat a tageket, melyeket
   nem szeretnél eltávolítani.
   <note>
    <para>
     Az <parameter>allowable_tags</parameter> paraméter a PHP 3.0.13-ban,
     PHP 4.0.0-ban került a nyelvbe.
    </para>
   </note>
  </para>
  <para>
   A <parameter>length</parameter> paraméter a PHP 5 óta opcinális.
  </para>
  &note.line-endings;
  <para>
   Lásd még: <function>fgets</function>, <function>fopen</function>,
   <function>fsockopen</function>, <function>popen</function> és
   <function>strip_tags</function>.
  </para>
 </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
-->

http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/filesystem/functions/fgets.xml?view=markup&rev=1.1
Index: phpdoc-hu/reference/filesystem/functions/fgets.xml
+++ phpdoc-hu/reference/filesystem/functions/fgets.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- EN-Revision: 1.17 Maintainer: chappy Status: ready -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.fgets">
 <refnamediv>
  <refname>fgets</refname>
  <refpurpose>Kinyer egy sort a fájl pointerbõl</refpurpose>
 </refnamediv>
 <refsect1>
  <title>Leírás</title>
  <methodsynopsis>
   <type>string</type><methodname>fgets</methodname>
   <methodparam><type>resource</type><parameter>handle</parameter></methodparam>
   <methodparam choice="opt"><type>int</type><parameter>length</parameter></methodparam>
  </methodsynopsis>
  <para>
   Visszad egy maximum <parameter>length</parameter> - 1 bájt hosszúságú karakterláncot, amit
   a <parameter>handle</parameter> pointerbõl olvasott ki. Az olvasás véget ér, ha
   <parameter>length</parameter> - 1 bájtot már beolvasott, új sor kezdõdött (a sortörés
   benne van a visszatérési értékben), vagy EOF (fájl vége) esetén (amelyik hamarabb esik meg). 
   Ha nincs hossz megadva, addig fog olvasni az adatfolyamból, míg el 
   nem éri a sor végét.
  </para>
  <para>
   Ha hiba lép fel, &false;-szal tér vissza.
  </para>
  <para>
   Gyakori csapda:
  </para>
  <simpara>
   Azok, akik megszokták a <function>fgets</function> függvény 'C' szemantikai használatát, 
   fejben kell tartaniuk, hogy a függvény <literal>EOF</literal>-t is adhat vissza.
  </simpara>

  &fs.validfp.all;

  <para>
   Íme egy egyszerû példa:
   <example>
    <title>Fájl sorról sorra való beolvasása</title>
    <programlisting role="php">
<![CDATA[
<?php
$handle = @fopen("/tmp/inputfile.txt", "r");
if ($handle) {
    while (!feof($handle)) {
        $buffer = fgets($handle, 4096);
        echo $buffer;
    }
    fclose($handle);
}
?>
]]>
    </programlisting>
   </example>
  </para>
  <note>
   <simpara>
    A <parameter>length</parameter> paraméter opcinálissá vált a
    4.2.0-ban. A PHP 4.3.0-ig, omitting it would assume 1024 as the line length.
    If the majority of the lines in the file are all larger than 8KB,
    it is more resource efficient for your script to specify the maximum
    line length.
   </simpara>
  </note>
  <note>
   <simpara>
    Ez a függvény binary safe a PHP 4.3-tól. A korvábbi verziók nem
    binary safe-ek.
   </simpara>
  </note>
  &note.line-endings;
  <para>
   Lásd még: <function>fgetss</function>
   <function>fread</function>,
   <function>fgetc</function>,
   <function>stream_get_line</function>,
   <function>fopen</function>,
   <function>popen</function>,
   <function>fsockopen</function> és
   <function>stream_set_timeout</function>.
  </para>
 </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.