Online Documentation Server
 ПОИСК
ods.com.ua Web
 КАТЕГОРИИ
Home
Programming
Net technology
Unixes
Security
RFC, HOWTO
Web technology
Data bases
Other docs

 РЕКЛАМА

 ПОДПИСКА

 ССЫЛКИ
Colocation
Скоростной интернет
Бесплатный интернет
Wi-Fi
Работа в Киеве
Доставка цветов
Мобильные телефоны
VoIP Billing
Музыка и фильмы
AS numbers, IP addresses
Стройматериалы, инструменты
Flowers delivery Kiev

 АНКЕТА
Как Вам ODS?

 О КОПИРАЙТАХ
Вся предоставленная на этом сервере информация собрана нами из разных источников. Если Вам кажется, что публикация каких-то документов нарушает чьи-либо авторские права, сообщите нам об этом.

 РЕКЛАМА

[Links] [Работа в Киеве] [mp3] [Рефераты] [WiFiver.com
chmod

chmod

(PHP3 , PHP4 )

chmod -- Changes file mode

Description

int chmod (string filename, int mode)

Attempts to change the mode of the file specified by filename to that given in mode.

Note that mode is not automatically assumed to be an octal value, so strings (such as "g+w") will not work properly. To ensure the expected operation, you need to prefix mode with a zero (0):


chmod ("/somedir/somefile", 755);   // decimal; probably incorrect   
chmod ("/somedir/somefile", "u+rwx,go+rx"); // string; incorrect       
chmod ("/somedir/somefile", 0755);  // octal; correct value of mode
      

Returns true on success and false otherwise.

See also chown() and chgrp().

Note: This function does not work on Windows systems



With any suggestions or questions please feel free to contact us