PHP chgrp()関数
❮PHPファイルシステムリファレンス例
「test.txt」ファイルのユーザーグループを「admin」に変更します。
<?php
chgrp("test.txt","admin")
?>
定義と使用法
chgrp()関数は、指定されたファイルのユーザーグループを変更します。
構文
chgrp(file, group)
パラメータ値
Parameter | Description |
---|---|
file | Required. Specifies the path to the file to change user group for |
group | Required. Specifies the new group name or number |
技術的な詳細
戻り値: | 成功した場合はTRUE、失敗した場合はFALSE |
---|---|
PHPバージョン: | 4.0以降 |
❮PHPファイルシステムリファレンス