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

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

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

http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/filesystem/functions/pathinfo.xml?view=markup&rev=1.1
Index: phpdoc-hu/reference/filesystem/functions/pathinfo.xml
+++ phpdoc-hu/reference/filesystem/functions/pathinfo.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.13 Maintainer: chappy Status: ready -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.61 -->
<refentry id="function.pathinfo">
 <refnamediv>
  <refname>pathinfo</refname>
  <refpurpose>Visszaadja egy fájl elérési útjának az információit</refpurpose>
 </refnamediv>
 <refsect1>
  <title>Leírás</title>
  <methodsynopsis>
   <type>mixed</type><methodname>pathinfo</methodname>
   <methodparam><type>string</type><parameter>path</parameter></methodparam>
   <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam>
  </methodsynopsis>
  <para>
   A <function>pathinfo</function> függvény egy asszociatív tömböt ad vissza, 
   ami információkat tartalmaz a <parameter>path</parameter> paraméterrõl. A
   következõek a tömb elemei:
   <literal>dirname</literal>, <literal>basename</literal>
   és <literal>extension</literal>, ha van.
  </para>
  <para>
   Megadhatod, mely elemet adja vissza függvény az opcinális
   <parameter>options</parameter> paraméterben. Ez a 
   <constant>PATHINFO_DIRNAME</constant>, a
   <constant>PATHINFO_BASENAME</constant>, a
   <constant>PATHINFO_EXTENSION</constant> és a
   <constant>PATHINFO_FILENAME</constant> (PHP 5.2.0 óta elérhetõ) konstansokból állhat. 
   Alapértelmezettként minden elemet visszaad. Ez a függvény egy karaterláncot ad vissza,
   ha nem kérték tõle az összes elemet.
  </para>
  <para>
   <example>
    <title><function>pathinfo</function> példa</title>
    <programlisting role="php">
<![CDATA[
<?php
$path_parts = pathinfo('/www/htdocs/index.html');

echo $path_parts['dirname'], "\n";
echo $path_parts['basename'], "\n";
echo $path_parts['extension'], "\n";
echo $path_parts['filename'], "\n"; // PHP 5.2.0 óta
?>
]]>
    </programlisting>
    <para>
     A kimenetnek ilyennek kellene lennie:
    </para>
    <screen>
<![CDATA[
/www/htdocs
index.html
html
index
]]>
    </screen>
   </example>
  </para>
  <note>
   <para>
    For information on retrieving the current path info, read
    the section on <link linkend="language.variables.predefined">
    predefined reserved variables</link>.
   </para>
  </note>
  <para>
   Lásd még: <function>dirname</function>,
   <function>basename</function>,
   <function>parse_url</function>
   és <function>realpath</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.