cvs: phpdoc-sk /reference/filesystem/functions basename.xml chgrp.xml chmod.xml chown.xml clearstatcache.xml

[email protected] ("Robert Novotny")
Newsgroups php.doc.sk
Message-ID <cvsnovotnyr1043762387@cvsserver>
novotnyr		Tue Jan 28 08:59:47 2003 EDT

  Added files:                 
    /phpdoc-sk/reference/filesystem/functions	basename.xml chgrp.xml 
                                             	chmod.xml chown.xml 
                                             	clearstatcache.xml 
  Log:
  new ones
novotnyr-20030128085947.txt (text/plain, 12.2 KB)
Index: phpdoc-sk/reference/filesystem/functions/basename.xml
+++ phpdoc-sk/reference/filesystem/functions/basename.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- $Revision: 1.1 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
  <refentry id="function.basename">
   <refnamediv>
    <refname>basename</refname>
    <refpurpose>Vráti z re»azca obsahujúceho cestu k súboru jeho názov</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>string</type><methodname>basename</methodname>
      <methodparam><type>string</type><parameter>cesta</parameter></methodparam>
      <methodparam choice="opt"><type>string</type><parameter>pripona</parameter></methodparam>
     </methodsynopsis>
    <para>
     K zadanému re»azcu obsahujúcemu cestu k súboru vráti táto funkcia 
     názov tohto súboru.
     Ak názov súboru obsahuje <parameter>príponu</parameter>, táto prípona
     bude odrezaná.
    </para>
    <para>
     Vo Windows mô¾e by» pou¾ívaný ako oddeµovaè adresárov znak obyèajnej lomky (<literal>/</literal>) a
     i spätnej lomky (<literal>\</literal>). V ostatných prostrediach slu¾i
     ako oddeµovaè obyèajná lomka 
    (<literal>/</literal>).
    </para>
    <para>
     <example>
      <title>Príklad na pou¾itie <function>basename</function></title>
      <programlisting role="php">
<![CDATA[
$path = "/home/httpd/html/index.php";
$file = basename ($path);        // $file je nastavená na "index" 
$file = basename ($path,".php"); // $file je nastavená na "index.php"
]]>
      </programlisting>
     </example>
    </para>
    <note>
     <para>
      Parameter <parameter>suffix</parameter> bol pridaný v PHP 4.1.0.
     </para>
    </note>
    <para>
     Pozri tie¾: <function>dirname</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
-->

Index: phpdoc-sk/reference/filesystem/functions/chgrp.xml
+++ phpdoc-sk/reference/filesystem/functions/chgrp.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.3 Maintainer: novotnyr Status: ready -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
  <refentry id="function.chgrp">
   <refnamediv>
    <refname>chgrp</refname>
    <refpurpose>Zmení skupinu súboru</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>int</type><methodname>chgrp</methodname>
      <methodparam><type>string</type><parameter>nazovsuboru</parameter></methodparam>
      <methodparam><type>mixed</type><parameter>skupina</parameter></methodparam>
     </methodsynopsis>
    <para>
     Pokúsi sa zmeni» skupinu súboru, ktorého názov je zadaný v parametri <parameter>nazovsuboru</parameter>
     na skupinu danú v parametri <parameter>skupina</parameter> (tá mô¾e by»
     ¹pecifikovaná názvom alebo èíslom). 
     Len superu¾ívateµ (resp. správca) mô¾e meni» skupinu µubovoµného súboru.
     Ostatní u¾ívatelia mô¾u zmeni» skupinu súboru len na takú, v ktorej sú 
     oni sami èlenom.
    </para>
    <para>
     &return.success;
    </para>
    <para>
     Pozri tie¾ <function>chown</function> a
     <function>chmod</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
-->

Index: phpdoc-sk/reference/filesystem/functions/chmod.xml
+++ phpdoc-sk/reference/filesystem/functions/chmod.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.5 Maintainer: novotnyr Status: ready -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
  <refentry id="function.chmod">
   <refnamediv>
    <refname>chmod</refname>
    <refpurpose>Zmení mód súboru</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>int</type><methodname>chmod</methodname>
      <methodparam><type>string</type><parameter>nazovsuboru</parameter></methodparam>
      <methodparam><type>int</type><parameter>mod</parameter></methodparam>
     </methodsynopsis>
    <para>
     Pokúsi sa zmeni» mód súboru zadaného v parametri 
     <parameter>filename</parameter> na mód zadaný v parametri
     <parameter>mode</parameter>.
    </para>
    <para>
     Treba si v¹imnú», ¾e <parameter>mod</parameter> je automaticky
     pokladaný za hodnotu v osmièkovej sústave, èi¾e re»azce (ako napr. "g+w")
     nebudú pracova» správne. Ak chcete zaisti» správne fungovanie,
     musíte predradi» parametru <parameter>mode</parameter> nulu (0):
     <informalexample>
      <programlisting role="php">
<![CDATA[
chmod ("/adresar/subor", 755);   // desiatková hodnota; pravdepodobne nesprávned
chmod ("/adresar/subor", "u+rwx,go+rx"); // re»azec; nesprávne
chmod ("/adresar/subor", 0755);  // osmièková hodnota; správna hodnota módu
]]>
      </programlisting>
     </informalexample>
    </para>
    <para>
     Parameter <parameter>mod</parameter> obsahuje tri komponenty - èísla v osmièkovej sústave,
     ktoré urèujú práva na prísup pre vlastníka súboru, skupinu v ktorej sa
     vlastník nachádza a pre ostatných u¾ívateµov.
     Ka¾dé z týchto troch èísel mo¾no vypoèíta» pripoèítaním potrebných práv
     pre cieµový okruh u¾ívateµov. Èíslo 1 znamená pridelenie práv
     na vykonanie (execute), èíslo 2 znamená pridelenie práva zapisova»
     do súboru, èíslo 4 znamená právo èíta» zadaný súbor. Spoèítaním týchto
     èísel mo¾no ¹pecifikova» potrebné právo. O módoch v systémoch UNIX sa mo¾no
     viac doèíta» v 'man 1 chmod' a 'man 2 chmod'.
     <informalexample>
      <programlisting role="php">
<![CDATA[
// Vlastník mô¾e èíta» a zapisova», ostatní nemô¾u niè
chmod ("/adresar/subor", 0600);

// Vlastník mô¾e èíta» a zapisova», ostatní mô¾u èíta»
chmod ("/adresar/subor", 0644);

// Vlastník má v¹etky práva, ostatní mô¾u èíta» a vykonáva»
chmod ("/adresar/subor", 0755);

// Vlastník má v¹etky práva, skupina vlastníka mô¾e èíta» a vykonáva»
chmod ("/adresar/subor", 0750);
]]>
      </programlisting>
     </informalexample>
    </para>
    <para>
     <note>
      <para>
       Aktuálny u¾ívateµ je u¾ívateµ pod ktorým be¾í PHP. Tento u¾ívateµ
       nemusí by» ten istý ako u¾ívateµ, ktorého pou¾ívate pre shell alebo ftp. 
      </para>
     </note>
    </para>
    <para>
     &return.success;
    </para>
    <para>
     Pozri tie¾ <function>chown</function> a
     <function>chgrp</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
-->

Index: phpdoc-sk/reference/filesystem/functions/chown.xml
+++ phpdoc-sk/reference/filesystem/functions/chown.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.4 Maintainer: novotnyr Status: ready -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
  <refentry id="function.chown">
   <refnamediv>
    <refname>chown</refname>
    <refpurpose>Zmení vlastníka súboru</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>int</type><methodname>chown</methodname>
      <methodparam><type>string</type><parameter>nazovsuboru</parameter></methodparam>
      <methodparam><type>mixed</type><parameter>uzivatel</parameter></methodparam>
     </methodsynopsis>
    <para>
     Pokúsi sa zmeni» vlastníka súboru, ktorého názov je zadaný v parametri <parameter>nazovsuboru</parameter>
     na u¾ívateµa <parameter>uzivatel</parameter> (mô¾e by» ¹pecifikovaný menom alebo èíslom). 
     Iba superu¾ívateµ (resp. správca) mô¾e zmeni» vlastníka súboru.
    </para>
    <para>
     &return.success;
    </para>
    <para>
     Pozri tie¾<function>chmod</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
-->

Index: phpdoc-sk/reference/filesystem/functions/clearstatcache.xml
+++ phpdoc-sk/reference/filesystem/functions/clearstatcache.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.5 Maintainer: novotnyr Status: ready -->
<!-- split from ./en/functions/filesystem.xml, last change in rev 1.2 -->
  <refentry id="function.clearstatcache">
   <refnamediv>
    <refname>clearstatcache</refname>
    <refpurpose>Vyma¾e cache obsahujúcu stav súborov</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Popis</title>
     <methodsynopsis>
      <type>void</type><methodname>clearstatcache</methodname>
      <void/>
     </methodsynopsis>
    <para>
     Pri pou¾ívaní <function>stat</function>, <function>lstat</function>, èi
     ïal¹ích funkcií v doleuvedenom zozname PHP ukladá návratové hodnoty
     týchto funkcií do cache (vyrovnávacej pamäte), èím je zaistený
     lep¹í výkon. Napríklad, ak je nejaký súbor kontrolovaný v tom
     istom skripte viackrát a poèas vykonávania tejto funkcie mô¾e
     by» tento súbor súbor nejakým spôsobom zmenený alebo odstránený,
     je vhodné vymaza» stavovú cache. V týchto prípadoch treba pou¾i» funkciu
     <function>clearstatcache</function> na vymazanie informácií o tomto súbore
     v pamäti cache.
    </para>
    <note>
     <para>
       Táto funkcia si ukladá informácie o niektorých súboroch do cache pamäte,
       preto je potrebné zavola» <function>clearstatcache</function>, ak
       je vykonávaných viacero operácií na rovnakom súbore a nie je vhodné
       aby bola informácia o tomto súbore ukladaná v pamäti cache.
     </para>
    </note>
    <para>
     Zoznam funkcií, ktorých výsledky mô¾u by» cacheované: <function>stat</function>,
     <function>lstat</function>,
     <function>file_exists</function>,
     <function>is_writable</function>,
     <function>is_readable</function>,
     <function>is_executable</function>,
     <function>is_file</function>,
     <function>is_dir</function>,
     <function>is_link</function>,
     <function>filectime</function>,
     <function>fileatime</function>,
     <function>filemtime</function>,
     <function>fileinode</function>,
     <function>filegroup</function>,
     <function>fileowner</function>,
     <function>filesize</function>,
     <function>filetype</function> a
     <function>fileperms</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.