« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 3 of about 3 for numFiles (0.001 sec.)
例 | PHP 8.3 11905
例 例1 Zip アーカイブの作成 <?php $zip = new ZipArchive (); $filename = "./test112.zip" ; if ( $zip -> open ( $filename , ZipArchive :: CREATE )!== TRUE ) { exit( "cannot open < $filename >\n" ); } $zip -> addFromString ( "testfilephp.txt" ... s is a test string added as testfilephp2.txt.\n" ); $zip -> addFile ( $thisdir . "/too.php" , "/testfromfile.php" ); echo "numfiles: " . $zip -> numFiles . "\n" ; echo "status:" . $zip -> status . "\n" ; $zip -> close (); ?> 例2 アーカイブの詳細の出力およ ... び一覧表示 <?php $za = new ZipArchive (); $za -> open ( 'test_with_comment.zip' ); print_r ( $za ); var_dump ( $za ); echo "numFiles: " . $za -> numFiles . "\n" ; echo "status: " . $za -> status . "\n" ; echo "statusSys: " . $za -> statusSys . "\n" ; echo ... "filename: " . $za -> filename . "\n" ; echo "comment: " . $za -> comment . "\n" ; for ( $i = 0 ; $i < $za -> numFiles ; $i ++) { echo "index: $i \n" ; print_r ( $za -> statIndex ( $i )); } echo "numFile:" . $za -> numFiles . "\n" ; ?> 例3 Z ...
https://man.mtool.work/php/8.3/zip.examples.html
ZipArchive::getNameIndex — インデックスを使用して、エントリの名前を返す | PHP 8... 8203
ZipArchive::getNameIndex (PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.5.0) ZipArchive::getNameIndex — インデックスを使用して、エントリの名前を返す 説明 public function ZipArchive::getNameIndex ( int $index , int $flags = 0 ): string | false ... ます。 例 例1 ZipArchive::getNameIndex() の例 <?php if ( $zip -> open ( 'test.zip' ) == TRUE ) { for ( $i = 0 ; $i < $zip -> numFiles ; $i ++) { $filename = $zip -> getNameIndex ( $i ); // ... } } ?> 他のマニュアルの関連ページ Linux JM sysfs(2) Linux JM gd ...
https://man.mtool.work/php/8.3/ziparchive.getnameindex.html
ZipArchive クラス | PHP 8.3 7775
ZipArchive クラス (PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.1.0) はじめに Zip で圧縮されたファイルアーカイブです。 クラス概要 class ZipArchive implements Countable { /* 定数 */ public const int CREATE ; public const int EXCL ; public con ... ィ */ public readonly int $ lastId ; public readonly int $ status ; public readonly int $ statusSys ; public readonly int $ numFiles ; public readonly string $ filename ; public readonly string $ comment ; /* メソッド */ public function addEmptyDir ( stri ... statusSys Zip アーカイブのシステム状態。 PHP 8.0.0 以降および PECL 1.18.0 以降では、閉じられたアーカイブでも利用可能です。 numFiles アーカイブ内のファイル数 filename ファイルシステム上のファイル名 comment アーカイブのコメント 目次 ZipArchive::addEmptyDir ...
https://man.mtool.work/php/8.3/class.ziparchive.html
PREV 1 NEXT