Results of 1 - 10 of about 63 for compress (0.001 sec.)
- PharData::compress — tar/zip アーカイブ全体を Gzip あるいは Bzip2 で圧縮する | ... 11724
- PharData::compress (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 2.0.0) PharData::compress — tar/zip アーカイブ全体を Gzip あるいは Bzip2 で圧縮する 説明 public function PharData::compress ( int $compression , ? string $extension = null ): ?
... 合は拡張子も削除します。 もうひとつの方法として、ファイルの拡張子を 2 番目のパラメータで指定することもできます。 パラメータ compression 圧縮を行う場合には Phar::GZ あるいは Phar::BZ2 、圧縮を解除する場合には Phar::NONE を指定します。 extension デフォルトで ... MethodCallException をスローします。 変更履歴 バージョン 説明 8.0.0 extension は、nullable になりました。 例 例1 PharData::compress() の例 <?php $p = new PharData ( '/path/to/my.tar' ); $p [ 'myfile.txt' ] = 'hi' ; $p [ 'myfile2.txt' ] = 'hi' ; $p1 = $p ... -> compress ( Phar :: GZ ); // /path/to/my.tar.gz にコピーします $p2 = $p -> compress ( Phar :: BZ2 ); // /path/to/my.tar.bz2 にコピー ...
-
https://man.mtool.work/php/8.3/phardata.compress.html
- zlib:// — 圧縮ストリーム | PHP 8.3 11638
- zlib:// bzip2:// zip:// zlib:// -- bzip2:// -- zip:// — 圧縮ストリーム 説明 compress.zlib:// および compress.bzip2:// zlib: は gzopen() と同様に 動作しますが、このストリームは fread() および 他のファイルシステム関数と組み合わせて使用すること
... ができるところが 異なります。この機能ではファイル名に ':' 文字が含まれる曖昧さが あるため、推奨されません。代わりに compress.zlib:// を使用してください。 compress.zlib:// および compress.bzip2:// は、それぞれ gzopen() および bzopen() と等価で、 fo ... トでパスワードを与えることが出来るようになりました。 パスワードは、 'password' コンテキストオプションで設定できます。 利用法 compress.zlib://file.gz compress.bzip2://file.bz2 zip://archive.zip#dir/file.txt オプション ラッパーの概要 属性 サポートの有無 allo ...
-
https://man.mtool.work/php/8.3/wrappers.compression.html
- lzf_compress — LZF 圧縮を行う | PHP 8.3 11162
- lzf_compress (PECL lzf >= 0.1.0) lzf_compress — LZF 圧縮を行う 説明 function lzf_compress ( string $data ): string lzf_compress() は、指定された arg を LZF 符号化方式で圧縮します。 パラメータ data 圧縮するデータ。 戻り値 圧縮されたデータを返
... します。エラー時には false を返します。 参考 lzf_decompress() - LZF 圧縮を伸長する 他のマニュアルの関連ページ Linux JM xzgrep(1) Python bz2 Linux JM znew(1) Linux JM zgrep(1) Python ...
-
https://man.mtool.work/php/8.3/function.lzf-compress.html
- Phar::compress — Phar アーカイブ全体を Gzip あるいは Bzip2 で圧縮する | PHP 8.3 11162
- Phar::compress (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 2.0.0) Phar::compress — Phar アーカイブ全体を Gzip あるいは Bzip2 で圧縮する 説明 public function Phar::compress ( int $compression , ? string $extension = null ): ? Phar 注意 : この
... 合は拡張子も削除します。 もうひとつの方法として、ファイルの拡張子を 2 番目のパラメータで指定することもできます。 パラメータ compression 圧縮を行う場合には Phar::GZ あるいは Phar::BZ2 、圧縮を解除する場合には Phar::NONE を指定します。 extension デフォルトで ... BadMethodCallException をスローします。 変更履歴 バージョン 説明 8.0.0 extension は、nullable になりました。 例 例1 Phar::compress() の例 <?php $p = new Phar ( '/path/to/my.phar' , 0 , 'my.phar' ); $p [ 'myfile.txt' ] = 'hi' ; $p [ 'myfile2.txt' ] = 'hi ... ' ; $p1 = $p -> compress ( Phar :: GZ ); // /path/to/my.phar.gz にコピーします $p2 = $p -> compress ( Phar :: BZ2 ); // /path/to/my.phar.bz2 にコピ ...
-
https://man.mtool.work/php/8.3/phar.compress.html
- stream_get_wrappers — 登録されているストリームのラッパーのリストを取得する | PH... 10500
- stream_get_wrappers (PHP 5, PHP 7, PHP 8) stream_get_wrappers — 登録されているストリームのラッパーのリストを取得する 説明 function stream_get_wrappers (): array 実行中のシステムで使用可能な、登録済みのストリームの一覧を取得します。 パラメー
... ppers ()); ?> 上の例の出力は、 たとえば以下のようになります。 Array ( [0] => php [1] => file [2] => http [3] => ftp [4] => compress.bzip2 [5] => compress.zlib ) 例2 ストリームラッパーのが存在するかどうかを調べる <?php // bzip2 ストリームラッパーが存在する ... かどうかを調べます if ( in_array ( 'compress.bzip2' , stream_get_wrappers ())) { echo 'compress.bzip2:// サポートが有効です。' ; } else { echo 'compress.bzip2:// サポー ...
-
https://man.mtool.work/php/8.3/function.stream-get-wrappers.html
- PharFileInfo::compress — 現在の Phar エントリを zlib あるいは bzip2 のいずれか... 10039
- PharFileInfo::compress (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 2.0.0) PharFileInfo::compress — 現在の Phar エントリを zlib あるいは bzip2 のいずれかで圧縮する 説明 public function PharFileInfo::compress ( int $compression ): true このメ
... .readonly が off になっていなければなりません。 PharData アーカイブ内のファイルについてはこの制約はありません。 パラメータ compression Phar::GZ または Phar::BZ2 を指定しなければいけません。 戻り値 常に true を返します。 エラー / 例外 INI 設定 phar.readon ... の場合、あるいは zlib / zlib 拡張モジュールが使用できない場合に BadMethodCallException をスローします。 例 例1 PharFileInfo::compress() の例 <?php try { $p = new Phar ( '/path/to/my.phar' , 0 , 'my.phar' ); $p [ 'myfile.txt' ] = 'hi' ; $file = $p [ 'myfile ... .txt' ]; var_dump ( $file -> isCompressed ( Phar :: BZ2 )); $p [ 'myfile.txt' ]-> compress ( Phar :: BZ2 ); var_dump ( $file -> isCompressed ( Phar :: BZ2 )); } c ...
-
https://man.mtool.work/php/8.3/pharfileinfo.compress.html
- Memcache::setCompressThreshold — 大きな値に対する自動圧縮処理を有効にする | PHP... 9564
- Memcache::setCompressThreshold memcache_set_compress_threshold (PECL memcache >= 2.0.0) Memcache::setCompressThreshold -- memcache_set_compress_threshold — 大きな値に対する自動圧縮処理を有効にする 説明 function Memcache::setCompressThreshol
... d ( int $threshold , float $min_savings = ? ): bool function memcache_set_compress_threshold ( Memcache $memcache , int $threshold , float $min_savings = ? ): bool Memcache::setCompressThreshold() は、 大き ... 0.2 で、最低 20% の圧縮を指定します。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 Memcache::setCompressThreshold() の例 <?php /* オブジェクト指向の API */ $memcache_obj = new Memcache ; $memcache_obj -> addServer ( 'memcache_h ... ost' , 11211 ); $memcache_obj -> setCompressThreshold ( 20000 , 0.2 ); /* 手続き型の API */ $memcache_obj = memcache_connect ( 'memcache_host' , 11211 ); memcache_set_ ...
-
https://man.mtool.work/php/8.3/memcache.setcompressthreshold.html
- Swoole\Http\Response::gzip — Enable the gzip of response content. | PHP 8.3 8627
- Swoole\Http\Response::gzip (PECL swoole >= 1.9.0) Swoole\Http\Response::gzip — Enable the gzip of response content. 説明 public function Swoole\Http\Response::gzip ( string $compress_level = ? ): ReturnType The header about Content-Encoding
... will be added automatically. パラメータ compress_level 戻り値 他のマニュアルの関連ページ Python gzip Linux JM gzip(1) FastAPI Response class FastAPI Response Headers FastA ...
-
https://man.mtool.work/php/8.3/swoole-http-response.gzip.html
- 実行時設定 | PHP 8.3 8152
- 実行時設定 php.ini の設定により動作が変化します。 Yac 設定オプション 名前 デフォルト 変更可能 変更履歴 yac.compress_threshold 4K INI_SYSTEM yac.debug 0 INI_ALL yac.enable 1 INI_SYSTEM yac.enable_cli 0 INI_SYSTEM yac.keys_memory_size 8M INI_
... erializer php INI_SYSTEM yac.values_memory_size 64M INI_SYSTEM 以下に設定ディレクティブに関する 簡単な説明を示します。 yac.compress_threshold int Serialized values larger than this number of bytes are compressed (with LZ4, since Yac 2.4.0) before being s ... tored. Values above the 1M stored entry limit ( YAC_MAX_RAW_COMPRESSED_LEN ) are always compressed regardless of this setting, because they cannot be stored uncompressed. The default of 4K en ... ables compression; -1 disables it for values below the stored entry limit, and other positive values are clamped to the 1024 .. 1M range. ...
-
https://man.mtool.work/php/8.3/yac.configuration.html
- Phar::isCompressed — phar アーカイブ全体が (.tar.gz/tar.bz などで) 圧縮されてい... 7864
- Phar::isCompressed (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 2.0.0) Phar::isCompressed — phar アーカイブ全体が (.tar.gz/tar.bz などで) 圧縮されている場合に Phar::GZ あるいは PHAR::BZ2 を返す 説明 public function Phar::isCompressed (): int
... e を返します。 パラメータ パラメータはありません。 戻り値 Phar::GZ 、 Phar::BZ2 あるいは false を返します。 例 例1 Phar::isCompressed() の例 <?php try { $phar1 = new Phar ( 'myphar.zip.phar' ); var_dump ( $phar1 -> isCompressed ()); $phar2 = new Phar ( ' ... myuncompressed.tar.phar' ); var_dump ( $phar2 -> isCompressed ()); $phar2 -> compress ( Phar :: GZ ); var_dump ( $phar2 -> isCompressed ... ); } catch ( Exception $e ) { } ?> 上の例の出力は以下となります。 bool(false) bool(false) bool(true) 参考 PharFileInfo::getCompressedSize() - Phar アーカイブ内での実際のファイルの大きさ (圧縮された状態) を返す PharFileInfo::isCompressed() - エントリが圧縮 ...
-
https://man.mtool.work/php/8.3/phar.iscompressed.html