📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
butikv1.demodesign.com.tr
/
xpanel
📝
indiry.php
← Geri Dön
<?php include("inc/vt.php"); $sorgu = $dbh->prepare("SELECT * FROM product_order Where id=:id"); $sorgu->execute(['id' => (int)$_GET["id"]]); function Zip($source, $destination) { if (extension_loaded('zip') === true) { if (file_exists($source) === true) { $zip = new ZipArchive(); if ($zip->open($destination, ZIPARCHIVE::CREATE) === true) { $source = realpath($source); if (is_dir($source) === true) { $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($source), RecursiveIteratorIterator::SELF_FIRST); foreach ($files as $file) { $file = realpath($file); if (is_dir($file) === true) { $zip->addEmptyDir(str_replace($source . '/', '', $file . '/')); } else if (is_file($file) === true) { $zip->addFromString(str_replace($source . '/', '', $file), file_get_contents($file)); } } } else if (is_file($source) === true) { $zip->addFromString(basename($source), file_get_contents($source)); } } return $zip->close(); } } return false; } ; // Kullanımı Zip({{Dizin Adı}}, {{Oluşturulacak Arşiv Dosyası}}); Zip('../dosyalar/'.$_GET["sip"], './indir/'.$_GET["sip"].'.zip');
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula