Results of 1 - 1 of about 1 for numFile (0.001 sec.)
- 例 | PHP 8.3 9414
- 例 例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" ; ech ... o "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 ...
-
https://man.mtool.work/php/8.3/zip.examples.html
PREV
1
NEXT