Results of 1 - 6 of about 6 for getHostOs (0.002 sec.)
- RarEntry::getHostOs — エントリのホスト OS を取得する | PHP 8.3 12557
- RarEntry::getHostOs (PECL rar >= 0.1) RarEntry::getHostOs — エントリのホスト OS を取得する 説明 public function RarEntry::getHostOs (): int アーカイブエントリのホスト OS のコードを返します。 パラメータ この関数にはパラメータはありません。 戻
... り値 ホスト OS のコード、あるいはエラー時に false を返します。 例 例1 RarEntry::getHostOs() の例 (バージョン >= 2.0.0) <?php $rar_file = rar_open ( 'example.rar' ) or die( "Rar アーカイブのオープンに失敗しました" ... ; $entry = rar_entry_get ( $rar_file , 'Dir/file.txt' ) or die( "そのようなエントリは見つかりません" ); switch ( $entry -> getHostOs ()) { case RarEntry :: HOST_MSDOS : echo "MS-DOS\n" ; break; case RarEntry :: HOST_OS2 : echo "OS2\n" ; break; case RarEnt ... arEntry :: HOST_UNIX : echo "Unix/Linux\n" ; break; case RarEntry :: HOST_BEOS : echo "BeOS\n" ; break; } ?> 例2 RarEntry::getHostOs() の例 (バージョン <= 1.0.0) <?php $rar_file = rar_open ( 'example.rar' ) or die( "Rar アーカイブのオープンに失敗しました" ...
-
https://man.mtool.work/php/8.3/rarentry.gethostos.html
- The RarEntry class | PHP 8.3 10199
- The RarEntry class (PECL rar >= 0.1) はじめに A RAR entry, representing a directory or a compressed file inside a RAR archive. クラス概要 final class RarEntry { /* 定数 */ const int HOST_MSDOS = 0 ; const int HOST_OS2 = 1 ; const int HOST_W
... l public function getAttr (): int public function getCrc (): string public function getFileTime (): string public function getHostOs (): int public function getMethod (): int public function getName (): string public function getPackedSize (): int public ... rypted (): bool public function __toString (): string } 定義済み定数 RarEntry::HOST_MSDOS If the return value of RarEntry::getHostOs() equals this constant, MS-DOS was used to add this entry. Use instead of RAR_HOST_MSDOS . RarEntry::HOST_OS2 If the retur ... n value of RarEntry::getHostOs() equals this constant, OS/2 was used to add this entry. Intended to replace RAR_HOST_OS2 . RarEntry::HOST_WIN32 If the re ...
-
https://man.mtool.work/php/8.3/class.rarentry.html
- RarEntry::isDirectory — このエントリがディレクトリであるかどうかを調べる | PHP ... 8993
- RarEntry::isDirectory (PECL rar >= 2.0.0) RarEntry::isDirectory — このエントリがディレクトリであるかどうかを調べる 説明 public function RarEntry::isDirectory (): bool 現在のエントリがディレクトリであるかどうかを調べます。 パラメータ この関数
... イルでしか使えません)。 <?php //... //Open file, get entry and store in variable $e... //... $isDirectory = (bool) ((( $e -> getHostOs () == RAR_HOST_WIN32 ) && ( $e -> getAttr () & 0x10 )) || (( $e -> getHostOs () == RAR_HOST_UNIX ) && (( $e -> getAttr () ...
-
https://man.mtool.work/php/8.3/rarentry.isdirectory.html
- RarEntry::getAttr — エントリの属性を取得する | PHP 8.3 8371
- RarEntry::getAttr (PECL rar >= 0.1) RarEntry::getAttr — エントリの属性を取得する 説明 public function RarEntry::getAttr (): int アーカイブエントリの、OS に依存する属性を返します。 パラメータ この関数にはパラメータはありません。 戻り値 属性、
... = rar_entry_get ( $rar_file , 'dir/in/the/archive' ) or die( "そのようなエントリは見つかりません" ); $host_os = $entry -> getHostOs (); $attr = $entry -> getAttr (); switch( $host_os ) { case RAR_HOST_MSDOS : case RAR_HOST_OS2 : case RAR_HOST_WIN32 : cas ... ' , ( $attr & 0x0002 ) ? 'w' : '-' , ( $attr & 0x0001 ) ? 'x' : '-' ); break; } rar_close ( $rar_file ); ?> 参考 RarEntry::getHostOs() - エントリのホスト OS を取得する The constants in RarEntry 他のマニュアルの関連ページ Linux JM break(2) Linux JM pthread ...
-
https://man.mtool.work/php/8.3/rarentry.getattr.html
- Rar アーカイブ | PHP 8.3 7585
- Rar アーカイブ はじめに RAR は、Eugene Roshal が作成した強力で効率的なアーカイバです。 この拡張モジュールは unRAR ライブラリを使用していますが、 このライブラリは Rar アーカイブの読み込みしかサポートしていません。 unRAR のソースを使用して RA
... 性を取得する RarEntry::getCrc — エントリの CRC を取得する RarEntry::getFileTime — エントリの最終更新時刻を取得する RarEntry::getHostOs — エントリのホスト OS を取得する RarEntry::getMethod — エントリの圧縮方法を取得する RarEntry::getName — エントリの名前を取 ...
-
https://man.mtool.work/php/8.3/book.rar.html
- サンプル | PHP 8.3 7074
- サンプル マニュアル内の全サンプルの一覧 Example#0 - 初歩的な例 Example#1 - 初めての PHP スクリプト: hello.php Example#2 - PHP からシステムに関する情報を取得する Example#3 - 変数を出力する (配列要素) Example#4 - 制御構造 および 関数の使用例
... の例 Example#959 - アーカイブ内のすべてのファイルを展開する方法 Example#960 - RarEntry::getAttr の例 Example#961 - RarEntry::getHostOs の例 (バージョン >= 2.0.0) Example#962 - RarEntry::getHostOs の例 (バージョン <= 1.0.0) Example#963 - RarEntry::getMethod ...
-
https://man.mtool.work/php/8.3/indexes.examples.html
PREV
1
NEXT