Join Up!
96812 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previouschgrpchownnext
Last updated: Sun, 27 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Finnish | German | Spanish

chmod

(PHP 3, PHP 4 )

chmod -- Změnit mód souboru

Popis

int chmod ( string filename, int mode)

Pokusí se změnit mód souboru filename na mode.

Pozn.: mode se nepovažuje automaticky za oktalovou hodnotu, takže řetězce (jako "g+w") nebudou správně fungovat. Pokud si chcete zajistit očekávané chování, musíte na začátek mode přidat nulu (0):

chmod ("/somedir/somefile", 755);   // desitkove cislo; zrejme nespravne
chmod ("/somedir/somefile", "u+rwx,go+rx"); // retezec; nespravny
chmod ("/somedir/somefile", 0755);  // oktal; spravna hodnota modu

Při úspěchu vrací TRUE, jinak FALSE.

Viz také chown() a chgrp().

Poznámka: Tato funkce nefunguje na Windows systémech

User Contributed Notes
chmod
add a note about notes
There are no user contributed notes for this page.
previouschgrpchownnext
Last updated: Sun, 27 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST