cvs: phpdoc-hu /reference/filesystem/functions file-get-contents.xml

[email protected] ("Lajos Cseppent?")
Newsgroups php.doc.hu
Message-ID <cvschappy1171142977@cvsserver>
chappy		Sat Feb 10 21:29:37 2007 UTC

  Added files:                 
    /phpdoc-hu/reference/filesystem/functions	file-get-contents.xml 
  Log:
  file-get-contents.xml
  

http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/filesystem/functions/file-get-contents.xml?view=markup&rev=1.1
Index: phpdoc-hu/reference/filesystem/functions/file-get-contents.xml
+++ phpdoc-hu/reference/filesystem/functions/file-get-contents.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.25 Maintainer: chappy Status: ready -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.130 -->
  <refentry id="function.file-get-contents">
   <refnamediv>
    <refname>file_get_contents</refname> 
    <refpurpose>Egy egész fájlt beolvas karakterláncba</refpurpose>
   </refnamediv>
   <refsect1 role="description">
    &reftitle.description;
     <methodsynopsis>
      <type>string</type><methodname>file_get_contents</methodname>
      <methodparam><type>string</type><parameter>filename</parameter></methodparam>
      <methodparam choice="opt"><type>bool</type><parameter>use_include_path</parameter></methodparam>
      <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>offset</parameter></methodparam>
      <methodparam choice="opt"><type>int</type><parameter>maxlen</parameter></methodparam>
     </methodsynopsis>
    <para> 
     Azonos a <function>file</function> függvénnyel, kivéve, hogy a
     <function>file_get_contents</function> függvény a fájlt összefüggõ karakterláncként adja vissza, 
     ami az <parameter>offset</parameter> paraméterben megadott ponttól mért
     <parameter>maxlen</parameter> paraméterben megadott bájtnyi részt tartalmazza a fájlból.
     Sikertelenség esetén a <function>file_get_contents</function> függvény &false;-szal tér vissza.
    </para>
    <para>
     A <function>file_get_contents</function> függvény az elõnyben részesített függvény fájlok 
     tartalmának karakterláncba olvasásakor. Ez memórianyilvántartási technikákat használ a teljesítmény
     fokozásáért, ha ezt támogatja az operációs rendszered.
    </para>
    <note>
     <para>
      Ha különleges karaktereket (pl.: szóköz) tartalmazó URI-t nyitsz meg,
      ezt kódolnod kell az <function>urlencode</function> függvénnyel.
     </para>
    </note>
    <note>
     <para>
      A <parameter>context</parameter> paraméter &null; értékkel kihagyható.
     </para>
    </note>
   </refsect1>

   <refsect1 role="changelog">
    &reftitle.changelog;
    <para>
     <informaltable>
      <tgroup cols="2">
       <thead>
        <row>
         <entry>&Version;</entry>
         <entry>&Description;</entry>
        </row>
       </thead>
       <tbody>
        <row>
         <entry>5.0.0</entry>
         <entry>
          Szövegkörnyezet-támogatás hozzáadása
         </entry>
        </row>
        <row>
         <entry>5.1.0</entry>
         <entry>
          Az <parameter>offset</parameter> és
          <parameter>maxlen</parameter> paraméterek hozzáadása.
         </entry>
        </row>
       </tbody>
      </tgroup>
     </informaltable>
    </para>
   </refsect1>

   <refsect1 role="notes">
    &reftitle.notes;
    &note.bin-safe;
    &tip.fopen-wrapper;
    &note.context-support;
    &warn.ssl-non-standard;
   </refsect1>

   <refsect1 role="seealso">
    &reftitle.seealso;
    <para>
     <simplelist>
      <member><function>file</function></member>
      <member><function>fgets</function></member>
      <member><function>fread</function></member>
      <member><function>readfile</function></member>
      <member><function>file_put_contents</function></member>
      <member><function>stream_get_contents</function></member>
      <member><function>stream_context_create</function></member>
     </simplelist>
    </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.