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ş
CSV dosya oluştur
CSV dosya oluştur
csv-dosya-olustur
* CSV dosya olusturur
* @param array $data
* @param string $cikti_tipi
* @param string $dosya_adi
*/
function data2csv($data, $dosya_adi='/tmp/excel.csv'){
# txt ye cevir
$txt='';
foreach ($data as $row) {
foreach ($row as $value) {
$txt .= $value . '; ';
}
$txt = trim($txt,'; ');
$txt .="rn";
}
$txt = mb_convert_encoding($txt, 'ISO-8859-9', 'UTF-8');
if (file_exists($dosya_adi)) {
# bu dosya var , yeni dosya adı üret
$bn = basename($dosya_adi);
$yeni_dosya_adi = time() .'-'. $bn;
$dosya_adi = str_replace($bn,$yeni_dosya_adi,$dosya_adi);
}
# dosyayi olustur
touch($dosya_adi);
@chmod($dosya_adi,0775);
$fh = fopen($dosya_adi, 'w');
fwrite($fh, $txt);
fclose($fh);
return $dosya_adi;
}
Yeni Sayfa Oluştur
Tartışma
ya da

