Wiki Sayfaları
if(5==$deger) yada if ($deger==5)
PHPExcel kütüphanesi __autoload çakışması
PHPExcel kütüphanesi ile xls (eski excel) üretmek.
PHPExcel kütüphanesi ile xlsx üretmek
Okunabilir dosya boyutu bilgisi verir
CSV dosya oluştur
Zip Oluştur
Sayıyı yazı ile yazmak
yedek değişken kullanmadan 2 değişkenin değerlerini yer değiştirebilmek
PHP ile MemCached KullanımıSon Aktiviteler
yeni bir wiki sayfası oluşturdu utf8 general - utf8 turkish
7 ay önce
7 ay önce
yeni bir wiki sayfası oluşturdu if(5==$deger) yada if ($deger==5)
7 ay önce
7 ay önce
bu wiki sayfasına yorum yaptı.
8 ay önce
8 ay önce
yeni bir wiki sayfası oluşturdu mysql int(11) ile int(3) arasındaki fark
8 ay önce
8 ay önce
yeni bir wiki sayfası oluşturdu PHPExcel kütüphanesi __autoload çakışması
8 ay önce
8 ay önce
Paylaş
Zip Oluştur
Etiketler: zip php zip ZipArchive
Zip Oluştur
zip-olustur
* zip olusturur
* @param string $kaynak
* @param string $hedef
*/
function zip($kaynak,$hedef='/tmp/temp.zip'){
$zip = new ZipArchive;
if (file_exists($hedef)) {
# bu dosya var , yeni dosya adı üret
$bn = basename($hedef);
$yeni_dosya_adi = time() .'-'. $bn;
$hedef = str_replace($bn,$yeni_dosya_adi,$hedef);
}
touch($hedef);
chmod($hedef,0775);
if ($zip->open($hedef) === TRUE) {
$zip->addFile($kaynak, basename($kaynak));
$zip->close();
$ret = $hedef;
}
else {
$ret = false;
}
return $ret;
}
Yeni Sayfa Oluştur
Tartışma
ya da

