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

From: Date: Fri, 02 Feb 2007 17:51:30 +0000
Subject: cvs: phpdoc-hu /reference/filesystem/functions umask.xml
Groups: php.doc.hu 
Request: Send a blank email to doc-hu+get-1541@lists.php.net to get a copy of this message
chappy Fri Feb 2 17:51:30 2007 UTC Added files: /phpdoc-hu/reference/filesystem/functions umask.xml Log: sync http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/filesystem/functions/umask.xml?view=markup&rev=1.1 Index: phpdoc-hu/reference/filesystem/functions/umask.xml +++ phpdoc-hu/reference/filesystem/functions/umask.xml <?xml version="1.0" encoding="iso-8859-2"?> <!-- EN-Revision: 1.9 Maintainer: chappy Status: ready --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.umask"> <refnamediv> <refname>umask</refname> <refpurpose>Megváltoztatja a jelenlegi umask-ot</refpurpose> </refnamediv> <refsect1> <title>Leírás</title> <methodsynopsis> <type>int</type><methodname>umask</methodname> <methodparam choice="opt"><type>int</type><parameter>mask</parameter></methodparam> </methodsynopsis> <para> A <function>umask</function> függvény beállítja a PHP umask-ját a <parameter>mask</parameter> paraméterben megadott érték &amp; 0777 bitmûvelet értékére és a régi umaskot visszaadja. Amikor a PHP-t szerver modulként használod, az umaskot minden kérés befejezte után visszaállítája. </para> <para> A <function>umask</function> függvény paraméterek nélkül egyszerûen a jelenlegi umask-ot adja vissza. </para> <note> <para> Kerüld ennek a függvénynek a használatát többszálú webszereken. Jobb megváltoztatni a fájl jogosultságait a <function>chmod</function> függvénnyel a fájl létrehozása után. A <function>umask</function> függvényt használata váratlan viselkedéshez (fõleg összeakadás) vezethet a futó programok és a maga webszerver között, mert ugyanazt az umask-ot használják. </para> </note> <para> <example> <title><function>umask</function> példa</title> <programlisting role="php"> <![CDATA[ <?php $old = umask(0); chmod("/path/some_dir/some_file.txt", 0755); umask($old); // Ellenõrzés if ($old != umask()) { die('An error occured while changing back the umask'); } ?> ]]> </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 -->

« previous php.doc.hu (#1541) next »