cvs: phpdoc-sk /reference/filesystem/functions chown.xml popen.xml readfile.xml readlink.xml realpath.xml rename.xml rewind.xml rmdir.xml set-file-buffer.xml stat.xml symlink.xml tempnam.xml touch.xml umask.xml unlink.xml
[email protected] ("Robert Novotny")
| Newsgroups | php.doc.sk |
|---|---|
| Message-ID | <cvsnovotnyr1045041252@cvsserver> |
novotnyr Wed Feb 12 04:14:12 2003 EDT
Added files:
/phpdoc-sk/reference/filesystem/functions popen.xml readfile.xml
readlink.xml realpath.xml
rename.xml rewind.xml
rmdir.xml
set-file-buffer.xml
stat.xml symlink.xml
tempnam.xml touch.xml
umask.xml unlink.xml
Modified files:
/phpdoc-sk/reference/filesystem/functions chown.xml
Log:
new ones
novotnyr-20030212041412.txt
(text/plain, 28.3 KB)
Index: phpdoc-sk/reference/filesystem/functions/chown.xml
diff -u phpdoc-sk/reference/filesystem/functions/chown.xml:1.2 phpdoc-sk/reference/filesystem/functions/chown.xml:1.3
--- phpdoc-sk/reference/filesystem/functions/chown.xml:1.2 Fri Jan 31 11:44:02 2003
+++ phpdoc-sk/reference/filesystem/functions/chown.xml Wed Feb 12 04:14:11 2003
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- $Revision: 1.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">
Index: phpdoc-sk/reference/filesystem/functions/popen.xml
+++ phpdoc-sk/reference/filesystem/functions/popen.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.7 Maintainer: novotnyr Status: ready -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.popen">
<refnamediv>
<refname>popen</refname>
<refpurpose>Otvorí procesový deskriptor súboru</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>resource</type><methodname>popen</methodname>
<methodparam><type>string</type><parameter>príkaz</parameter></methodparam>
<methodparam><type>string</type><parameter>mód</parameter></methodparam>
</methodsynopsis>
<para>
Otvorí rúru (pipe) k procesu spustenému pomocou operácie fork na príkaz
zadaný v parametri <parameter>príkaz</parameter>.
</para>
<para>
Vráti deskriptor súboru, ktorý je podobný deskriptoru vracanému funkciou
<function>fopen</function>. Tento deskriptor je v¹ak len jednosmerný (mô¾e
by» pou¾ívaný buï na èítanie alebo na zápis) a musí by» uzatváraný pomocou
<function>pclose</function>. Tento deskriptor mô¾e by» pou¾ívaný vo
funkciách
<function>fgets</function>, <function>fgetss</function> and
<function>fputs</function>.
</para>
<para>
V prípade výskytu chyby bude vrátený &false;.
</para>
<note>
<para>
Ak hµadáte podporu pre prácu v oboch smeroch (èítanie aj zápis), pou¾ite
<function>proc_open</function>.
</para>
</note>
<para>
<example>
<title><function>popen</function> examole</title>
<programlisting role="php">
<![CDATA[
<?php
$handle = popen ("/bin/ls", "r");
?>
]]>
</programlisting>
</example>
</para>
<note>
<para>
Ak príkaz, ktorý má by» vykonaný, nebol nájdený, bude vrátená premenná
reprezentujúca platný typ resource. Toto správanie mô¾e by» na prvý
pohµad zvlá¹tne, ale má svoj význam - umo¾òuje ma» prístup k
prípadným chybovým hláseniam, ktoré boli vrátené shellom.
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
error_reporting(E_ALL);
/* zaveïme presmerovanie, aby sme mali prístup k stderr. */
$handle = popen('/path/to/spooge 2>&1', 'r');
echo "'$handle'; " . gettype($handle) . "\n";
$read = fread($handle, 2096);
echo $read;
pclose($handle);
?>
]]>
</programlisting>
</informalexample>
</para>
</note>
<para>
Pozri tie¾ <function>pclose</function>, <function>fopen</function>
a <function>proc_open</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/readfile.xml
+++ phpdoc-sk/reference/filesystem/functions/readfile.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.readfile">
<refnamediv>
<refname>readfile</refname>
<refpurpose>Vypí¹e obsah súboru</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>int</type><methodname>readfile</methodname>
<methodparam><type>string</type><parameter>názovsúboru</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>pou¾íva»_cesty_include</parameter></methodparam>
</methodsynopsis>
<para>
Naèíta súbor a vypí¹e ho do výstupného buffera.
</para>
<para>
Vráti poèet bytov naèítaných zo súboru. V prípade chyby vráti
&false; a v prípade, ¾e táto funkcia nebola volaná ako
@readfile, vypí¹e chybové hlásenie.
</para>
&tip.fopen-wrapper;
<para>
Druhý voliteµný parameter mô¾e by» nastavený na "1", ak
chcete vyhµadáva» súbor v cestách <link
linkend="ini.include-path">include_path</link>, too.
</para>
<para>
Pozri tie¾ <function>fpassthru</function>,
<function>file</function>, <function>fopen</function>,
<function>include</function>, <function>require</function>,
<function>virtual</function> a <xref linkend="wrappers"/>.
</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/readlink.xml
+++ phpdoc-sk/reference/filesystem/functions/readlink.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.readlink">
<refnamediv>
<refname>readlink</refname>
<refpurpose>Vráti cieµ symbolického linku</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>string</type><methodname>readlink</methodname>
<methodparam><type>string</type><parameter>cesta</parameter></methodparam>
</methodsynopsis>
<para>
<function>readlink</function> má rovnaké správanie ako funkcia
readlink v jazyku C; vráti cestu, na ktorú obsahuje symbolický link
alebo 0 v prípade chyby.
</para>
<para>
Pozri tie¾ <function>is_link</function>,
<function>symlink</function> a
<function>linkinfo</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/realpath.xml
+++ phpdoc-sk/reference/filesystem/functions/realpath.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.23 -->
<refentry id="function.realpath">
<refnamediv>
<refname>realpath</refname>
<refpurpose>Vráti kanonickú absolútnu cestu</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>string</type><methodname>realpath</methodname>
<methodparam><type>string</type><parameter>cesta</parameter></methodparam>
</methodsynopsis>
<para>
<function>realpath</function> expanduje v¹etky symbolické linky,
prevedie v¹etky relatívne cesty typu '/./', '/../' na príslu¹né
absolútne cesty, o¹etrí nadbytoèné znaky '/' v zadanom parametri
<parameter>cesta</parameter> a vráti kanonickú absolútnu cestu.
Výsledná cesta nebude obsahova» ¾iadne symbolické linky ani
komponenty typu '/./' èi '/../'.
</para>
<para>
<function>realpath</function> vráti &false; v prípade zlyhania,
napr. ak súbor neexistuje.
</para>
<para>
<example>
<title>Príklad na <function>realpath</function></title>
<programlisting role="php">
<![CDATA[
$real_path = realpath ("../../index.php");
]]>
</programlisting>
</example>
</para>
<para>
Pozri tie¾ <function>basename</function>,
<function>dirname</function> a
<function>pathinfo</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/rename.xml
+++ phpdoc-sk/reference/filesystem/functions/rename.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.rename">
<refnamediv>
<refname>rename</refname>
<refpurpose>Premenuje súbor</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>bool</type><methodname>rename</methodname>
<methodparam><type>string</type><parameter>starýnázov</parameter></methodparam>
<methodparam><type>string</type><parameter>novýnázov</parameter></methodparam>
</methodsynopsis>
<para>
Pokúsi sa premenova» súbor, ktorý má <parameter>starýnázov</parameter> na
súbor, ktorý bude ma» <parameter>novýnázov</parameter>.
</para>
<para>
&return.success;
<example>
<title>Príklad na <function>rename</function></title>
<programlisting role="php">
<![CDATA[
<?php
rename("/tmp/tmp_file.txt", "/home/user/login/docs/my_file.txt");
?>
]]>
</programlisting>
</example>
</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/rewind.xml
+++ phpdoc-sk/reference/filesystem/functions/rewind.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.6 Maintainer: novotnyr Status: ready -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.rewind">
<refnamediv>
<refname>rewind</refname>
<refpurpose>Posunie interný ukazovateµ súboru na jeho zaèiatokr</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>int</type><methodname>rewind</methodname>
<methodparam><type>resource</type><parameter>deskriptor</parameter></methodparam>
</methodsynopsis>
<para>
Nastaví pozíciu v súbore pre <parameter>deskriptor</parameter> súboru
na zaèiatok súborového prúdu.
</para>
<para>
V prípade chyby vráti 0, inak vráti 1.
</para>
<para>
Deskriptor súboru musí by» platný a musí odkazova» na súbor, ktorý
bol úspe¹ne otvorený pomocou <function>fopen</function>.
</para>
<note>
<para>
Ak bol súbor otvorený v pripisovacom móde--append ("a"), v¹etky dáta
budú zapisované v¾dy na koniec súboru, bez ohµadu na pozíciu v tomto
súbore.
</para>
</note>
<para>
Pozri tie¾ <function>fseek</function> a
<function>ftell</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/rmdir.xml
+++ phpdoc-sk/reference/filesystem/functions/rmdir.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.rmdir">
<refnamediv>
<refname>rmdir</refname>
<refpurpose>Odstráni adresár</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>int</type><methodname>rmdir</methodname>
<methodparam><type>string</type><parameter>názovadresára</parameter></methodparam>
</methodsynopsis>
<para>
Pokúsi sa odstráni» adresár ¹pecifikovaný v parametri
<parameter>názovadresára</parameter>.
Tento adresár musí by» prázdny a jeho príslu¹né práva musia povoµova»
túto operáciu
&return.success;
</para>
<para>
Pozri tie¾ <function>mkdir</function> a <function>unlink</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/set-file-buffer.xml
+++ phpdoc-sk/reference/filesystem/functions/set-file-buffer.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.set-file-buffer">
<refnamediv>
<refname>set_file_buffer</refname>
<refpurpose>Alias pre <function>stream_set_write_buffer</function></refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<simpara>
Táto funkcia je alias pre funkciu
<function>stream_set_write_buffer</function>.
</simpara>
</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/stat.xml
+++ phpdoc-sk/reference/filesystem/functions/stat.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 Maintainer: novotnyr Status: ready -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.stat">
<refnamediv>
<refname>stat</refname>
<refpurpose>Poskytne informácie o súbore</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>array</type><methodname>stat</methodname>
<methodparam><type>string</type><parameter>názovsúboru</parameter></methodparam>
</methodsynopsis>
<para>
Zdru¾uje informácie o súbore zadanom pomocou jeho názvu.
</para>
<para>
Vráti pole s vlastnos»ami a ¹tatistikami o súbore, ktoré obsahuje nasledovné
prvky:
<orderedlist>
<listitem><simpara>zariadenie</simpara></listitem>
<listitem><simpara>inode</simpara></listitem>
<listitem><simpara>mód ochrany inode</simpara></listitem>
<listitem><simpara>poèet linkov</simpara></listitem>
<listitem><simpara>id u¾ívateµa - vlastníka</simpara></listitem>
<listitem><simpara>id skupiny vlastníka</simpara></listitem>
<listitem><simpara>typ zariadenia v prípade zariadenia inode *</simpara></listitem>
<listitem><simpara>veµkos» v bytoch</simpara></listitem>
<listitem><simpara>èas posledného prístupu</simpara></listitem>
<listitem><simpara>èas poslednej modifikácie</simpara></listitem>
<listitem><simpara>èas poslednej zmeny</simpara></listitem>
<listitem><simpara>veµkos» bloku pre I/O operácie súborového systému *</simpara></listitem>
<listitem><simpara>poèet alokovaných blokov</simpara></listitem>
</orderedlist>
* - dostupné len v systémoch podporujúcich typ st_blksize--ostatné
systémy (napr. Windows) vracajú -1.
</para>
<para>
V prípade chyby vráti &false;.
</para>
<para>
<function>stat</function> nemô¾e by» pou¾itá na <link
linkend="features.remote-files">vzdialených súboroch</link>.
</para>
<para>
Výsledky tejto funkcie sú cacheované. Bli¾¹ie informácie mo¾no nájs»
v popise <function>clearstatcache</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/symlink.xml
+++ phpdoc-sk/reference/filesystem/functions/symlink.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.symlink">
<refnamediv>
<refname>symlink</refname>
<refpurpose>Vytvorí symbolický link</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>int</type><methodname>symlink</methodname>
<methodparam><type>string</type><parameter>cieµ</parameter></methodparam>
<methodparam><type>string</type><parameter>link</parameter></methodparam>
</methodsynopsis>
<para>
<function>symlink</function> vytvorí symbolický link (odkaz)
na existujúci <parameter>cieµ</parameter> so zadaným názvom
v parametri <parameter>link</parameter>.
</para>
<para>
Pozri tie¾ <function>link</function> na vytvorenie hard-linkov,
a <function>readlink</function> spolu s
<function>linkinfo</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/tempnam.xml
+++ phpdoc-sk/reference/filesystem/functions/tempnam.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.tempnam">
<refnamediv>
<refname>tempnam</refname>
<refpurpose>Vytvorí súbor s jedineèným názvom</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>string</type><methodname>docasnazov</methodname>
<methodparam><type>string</type><parameter>adresar</parameter></methodparam>
<methodparam><type>string</type><parameter>prefix</parameter></methodparam>
</methodsynopsis>
<para>
Vytvorí súbor s jedineèným názvom v ¹pecifikovanom adresári.
Ak adresár neexistuje, <function>tempnam</function> mô¾e
vytvori» súbor v systémovom doèasnom adresári a vráti» jeho
názov.
</para>
<para>
Vo verziách pred PHP 4.0.6 bolo správanie funkcie
<function>tempnam</function> závislé na systéme. V systéme
Windows má nastavenie premennej prostredia TMP v¾dy prednos»
pred hodnotou parametra <parameter>adresar</parameter>. V systéme
Linux má prednos» premenná prostredia TMPDIR, zatiaµ èo systém SVR4
bude v¾dy pou¾íva» vami nastavenú hodnotu parametra
<parameter>adresar</parameter> parameter, za predpokladu, ¾e
tento zadaný adresár existuje. V prípade pochybností nahliadnite
do systémovej dokumentácie k funkcii tempnam(3).
</para>
<para>
Vráti nový názov doèasného súboru, v prípade chyby èi zlyhania vráti
re»azec &false;.
<example>
<title>Príklad na <function>tempnam</function></title>
<programlisting role="php">
<![CDATA[
$tmpfname = tempnam ("/tmp", "FOO");
$handle = fopen($tmpfname, "w");
fwrite($handle, "zapisujem do doèasného súboru");
fclose($handle);
// tu sú nejaké ïal¹ie èinnosti
unlink($tmpfname);
]]>
</programlisting>
</example>
</para>
<note>
<simpara>
Správanie sa tejto funkcie bolo zmenené vo verzii 4.0.3. Doèasný súbor
je vytvorený aj v prípadoch, keï sa doèasný súbor objaví v súborovom
systéme v èase medzi vygenerovaním názvu súboru a vytvorením súboru,
ktoré realizuje skript. V takýchto prípadoch treba súbor - ak u¾
nie je potrebný - odstráni» explicitne, nedeje sa to toti¾ automaticky.
</simpara>
</note>
<para>
Pozri tie¾ <function>tmpfile</function> a <function>unlink</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/touch.xml
+++ phpdoc-sk/reference/filesystem/functions/touch.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.touch">
<refnamediv>
<refname>touch</refname>
<refpurpose>Nastaví pre súbor èas posledného prístupu a modifikácie</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>int</type><methodname>touch</methodname>
<methodparam><type>string</type><parameter>nazovsuboru</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>cas</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>pcas</parameter></methodparam>
</methodsynopsis>
<para>
Pokúsi sa zmeni» èas posledného prístupu a modifikácie pre súbor zadaný v
parametri <parameter>nazovsuboru</parameter> na hodnotu zadanú èasom.
Ak nie je zadaný parameter <parameter>cas</parameter>, pou¾ije sa aktuálny.
To je ekvivalentné tomu, èo vykonáva utime (niekedy oznaèovaný ako utimes).
Ak je ¹pecifikovaná aj tretia mo¾nos»
<parameter>pcas</parameter>, èas posledného prístupu (access time) k súboru
je nastavený na hodnotu danú týmto parametrom <parameter>pcas</parameter>.
V¹imnite si, ¾e èas posledného prístupu bude zmenený v¾dy, bez ohµadu na
poèet parametrov.
</para>
<para>
Ak súbor neexistuje, bude vytvorený.
</para>
<para>
&return.success;
<example>
<title>Príklad na <function>touch</function></title>
<programlisting role="php">
<![CDATA[
if (touch ($FileName)) {
print "Èas poslednej modifikácie súboru $FileName bol
zmenený na dne¹ný dátum a èas";
} else {
print "Chyba: nemo¾no zmeni» dátum poslednej modifikácie súboru $FileName";
}
]]>
</programlisting>
</example>
</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/umask.xml
+++ phpdoc-sk/reference/filesystem/functions/umask.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.umask">
<refnamediv>
<refname>umask</refname>
<refpurpose>Zmení hodnotu umask</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>int</type><methodname>umask</methodname>
<methodparam choice="opt"><type>int</type><parameter>maska</parameter></methodparam>
</methodsynopsis>
<para>
<function>umask</function> nastaví umask pre PHP's na hodnotu & 0777 a
vráti predchádzajúcu hodnotu. Ak je PHP pou¾ívané ako modul servera,
hodnota umask je obnovená po ukonèení v¹etkých po¾iadaviek.
</para>
<para>
<function>umask</function> bez zadaných parametrov jednoducho vráti
aktuálnu hodnotu umask.
</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/unlink.xml
+++ phpdoc-sk/reference/filesystem/functions/unlink.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.2 $Maintainer: novotnyr Status: ready -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.unlink">
<refnamediv>
<refname>unlink</refname>
<refpurpose>Odstráni súbor</refpurpose>
</refnamediv>
<refsect1>
<title>Popis</title>
<methodsynopsis>
<type>int</type><methodname>unlink</methodname>
<methodparam><type>string</type><parameter>nazovsuboru</parameter></methodparam>
</methodsynopsis>
<para>
Odstráni súbor zadaný v parametri <parameter>nazovsuboru</parameter>.
Funkcia je podobná funkcii unlink() z unixového jazyka C.
</para>
<para>
&return.success;
</para>
<para>
Pozri tie¾ <function>rmdir</function>, ak chcete odstraòova» adresáre.
</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
-->