★ wanayoo — archive 1999 http://www.php.net/manual/ja/function.chmod.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to ファイルシステム
Quick Reference
English version of this pageGerman version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
ファイルシステム
* basename
* chgrp
* chmod
* chown
* clearstatcache
* copy
* delete
* dirname
* diskfreespace
* fclose
* feof
* fgetc
* fgetcsv
* fgets
* fgetss
* file
* file_exists
* fileatime
* filectime
* filegroup
* fileinode
* filemtime
* fileowner
* fileperms
* filesize
* filetype
* flock
* fopen
* fpassthru
* fputs
* fread
* fscanf
* fseek
* fstat
* ftell
* ftruncate
* fwrite
* set_file_buffer
* is_dir
* is_executable
* is_file
* is_link
* is_readable
* is_writeable
* link
* linkinfo
* mkdir
* pclose
* popen
* readfile
* readlink
* rename
* rewind
* rmdir
* stat
* lstat
* realpath
* symlink
* tempnam
* touch
* umask
* unlink
Manual: chmod
View the source code for this pageSearch the site



Previous page
 chgrp
 Updated
Mon, 14 Aug 2000
chown 
Next page


chmod

(PHP3 , PHP4 )

chmod -- ファイルのモードを変更する

説明

int chmod (string filename, int mode)

filenameで指定されたファイルのモードを modeで指定したものに変更しようと試みます。

modeは自動的には8進数と見なされないので 注意して下さい。このため、("g+w"のような)文字列は正常に動作しませ ん。意図した操作を行うには、modeの前にゼロ (0)を付ける必要があります。


chmod( "/somedir/somefile", 755 );   // 10 進数; おそらく間違い
chmod( "/somedir/somefile", 0755 );  // 8 進数; 正しいモードの値
      

成功するとtrue、そうでなければfalseを返します。

chown()およびchgrp() も参照下さい。

注意: この関数は、Windowsでは動作しません。


 About Notes


Previous page
 chgrp
 Updated
Mon, 14 Aug 2000
chown 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.