« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 7 of about 7 for perms (0.003 sec.)
fileperms — ファイルのパーミッションを取得する | PHP 8.3 13395
fileperms (PHP 4, PHP 5, PHP 7, PHP 8) fileperms — ファイルのパーミッションを取得する 説明 function fileperms ( string $filename ): int | false 指定したファイルのパーミッションを取得します。 パラメータ filename ファイルへのパス。 戻り値 ファ ... 外 失敗したときは E_WARNING が発生します。 例 例1 八進形式でのパーミッションの表示 <?php echo substr ( sprintf ( '%o' , fileperms ( '/tmp' )), - 4 ); echo substr ( sprintf ( '%o' , fileperms ( '/etc/passwd' )), - 4 ); ?> 上の例の出力は以下となります。 ... 1777 0644 例2 完全なパーミッションの表示 <?php $perms = fileperms ( '/etc/passwd' ); switch ( $perms & 0xF000 ) { case 0x1000 : $info = 'p' ; break; // FIFO パイプ case 0x2000 ... // シンボリックリンク case 0xC000 : $info = 's' ; break; // ソケット // 不明 default: $info = 'u' ; } // 所有者 $setuid = $perms & 0x0800 ; $info .= (( $perms & 0x0100 ) ? 'r' : '-' ); $info .= (( $perms & 0x0080 ) ? 'w' : '-' ); $info .= (( $perms & ...
https://man.mtool.work/php/8.3/function.fileperms.html
Zookeeper::getAcl — Gets the acl associated with a node synchronously | PHP 8.3 8906
Zookeeper::getAcl (PECL zookeeper >= 0.1.0) Zookeeper::getAcl — Gets the acl associated with a node synchronously 説明 public function Zookeeper::getAcl ( string $path ): array パラメータ path The name of the node. Expressed as a file name ... per::getAcl() example Get ACL of a node. <?php $zookeeper = new Zookeeper ( 'localhost:2181' ); $aclArray = array( array( 'perms' => Zookeeper :: PERM_ALL , 'scheme' => 'world' , 'id' => 'anyone' , ) ); $path = '/path/to/newnode' ; $zookeeper -> setAc ... cl ( $path ); if ( $r ) var_dump ( $r ); else echo 'ERR' ; ?> 上の例の出力は以下となります。 array(1) { [0]=> array(3) { ["perms"]=> int(31) ["scheme"]=> string(5) "world" ["id"]=> string(6) "anyone" } } 参考 Zookeeper::create() - Create a node synchr ...
https://man.mtool.work/php/8.3/zookeeper.getacl.html
Zookeeper::setAcl — Sets the acl associated with a node synchronously | PHP 8.3 8833
Zookeeper::setAcl (PECL zookeeper >= 0.1.0) Zookeeper::setAcl — Sets the acl associated with a node synchronously 説明 public function Zookeeper::setAcl ( string $path , int $version , array $acl ): bool パラメータ path The name of the node ... er::setAcl() example Set ACL for a node. <?php $zookeeper = new Zookeeper ( 'localhost:2181' ); $aclArray = array( array( 'perms' => Zookeeper :: PERM_ALL , 'scheme' => 'world' , 'id' => 'anyone' , ) ); $path = '/path/to/newnode' ; $zookeeper -> setAc ... cl ( $path ); if ( $r ) var_dump ( $r ); else echo 'ERR' ; ?> 上の例の出力は以下となります。 array(1) { [0]=> array(3) { ["perms"]=> int(31) ["scheme"]=> string(5) "world" ["id"]=> string(6) "anyone" } } 参考 Zookeeper::create() - Create a node synchr ...
https://man.mtool.work/php/8.3/zookeeper.setacl.html
PharFileInfo::chmod — ファイル固有のパーミッションビットを設定する | PHP 8.3 8724
PharFileInfo::chmod (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.0.0) PharFileInfo::chmod — ファイル固有のパーミッションビットを設定する 説明 public function PharFileInfo::chmod ( int $perms ): void PharFileInfo::chmod() は、ファイルパーミ ... 設定 phar.readonly がオフでなければなりません。 PharData アーカイブ内のファイルについては、この制約はありません。 パラメータ perms パーミッション ( chmod() を参照ください)。 戻り値 値を返しません。 例 例1 PharFileInfo::chmod() の例 <?php // 確実に消して ...
https://man.mtool.work/php/8.3/pharfileinfo.chmod.html
Zookeeper::create — Create a node synchronously | PHP 8.3 8124
Zookeeper::create (PECL zookeeper >= 0.1.0) Zookeeper::create — Create a node synchronously 説明 public function Zookeeper::create ( string $path , string $value , array $acls , int $flags = null ): string This method will create a node in ... per::create() example Create a new node. <?php $zookeeper = new Zookeeper ( 'localhost:2181' ); $aclArray = array( array( 'perms' => Zookeeper :: PERM_ALL , 'scheme' => 'world' , 'id' => 'anyone' , ) ); $path = '/path/to/newnode' ; $realPath = $zookee ...
https://man.mtool.work/php/8.3/zookeeper.create.html
PharFileInfo クラス | PHP 8.3 7942
PharFileInfo クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.0.0) はじめに PharFileInfo クラスは、 phar アーカイブ内の個々のファイルのコンテンツや属性への 高レベルインターフェイスを提供します。 クラス概要 class PharFileInfo extends Spl ... FileInfo { /* メソッド */ public function __construct ( string $filename ) public function chmod ( int $perms ): void public function compress ( int $compression ): true public function decompress (): true public function delMetadat ... string $class = null ): ? SplFileInfo public function SplFileInfo::getPathname (): string public function SplFileInfo::getPerms (): int | false public function SplFileInfo::getRealPath (): string | false public function SplFileInfo::getSize (): int | ...
https://man.mtool.work/php/8.3/class.pharfileinfo.html
定義済み定数 | PHP 8.3 7633
定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 以下の定数の説明と使い方は、 curl_setopt() , curl_multi_setopt() , curl_getin ... URL 7.73.0 以降で利用可能です。 CURLPX_GSSAPI ( int ) PHP 8.2.0 以降 および cURL 7.73.0 以降で利用可能です。 CURLPX_GSSAPI_PERMSG ( int ) PHP 8.2.0 以降 および cURL 7.73.0 以降で利用可能です。 CURLPX_GSSAPI_PROTECTION ( int ) PHP 8.2.0 以降 および cUR ... ユーザーのホームディレクトリにある .netrc ファイルをチェックします。 cURL 7.11.0 以降で利用可能です。 CURLOPT_NEW_DIRECTORY_PERMS ( int ) リモートサーバーで新しく作成されたディレクトリに設定されるパーミッションの値 ( int ) を設定します。 デフォルト値は ... す。 これを使用できるプロトコルは sftp:// 、 scp:// 、 file:// のみです。 cURL 7.16.4 以降で利用可能です。 CURLOPT_NEW_FILE_PERMS ( int ) リモートサーバーで新しく作成されたファイルに設定されるパーミッションの値 ( int ) を設定します。 デフォルト値は 064 ...
https://man.mtool.work/php/8.3/curl.constants.html
PREV 1 NEXT