One Hat Cyber Team
Your IP :
172.71.120.55
Server IP :
188.114.96.7
Server :
Linux advantage-project 5.14.0-503.26.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 19 16:28:19 UTC 2025 x86_64
Server Software :
Apache/2.4.62 (Rocky Linux) OpenSSL/3.2.2
PHP Version :
8.3.17
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
pecl
/
zip
/
examples
/
View File Name :
set_compression.php
<?php error_reporting(E_ALL); if (!extension_loaded('zip')) { dl('zip.so'); } $zip = new ZipArchive(); $filename = "a.zip"; if (!$zip->open($filename, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) { exit("cannot open <$filename>\n"); } $zip->addFromString("testfilephp.txt", "#1 This is a test string added as testfilephp.txt.\n"); $zip->addFromString("testfilephp2.txt", "#2 This is a test string added as testfilephp2.txt.\n"); $zip->addFile("too.php", "testfromfile.php"); $zip->setCompressionName("testfilephp2.txt", ZipArchive::CM_STORE); $zip->setCompressionIndex(2, ZipArchive::CM_STORE); $zip->close();