chmod

 bool chmod ( string $filename , int $mode ) 

説明

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

戻り値

Returns TRUE on success or FALSE on failure.