• 12-03-2009, 09:05:26
    #10
    Sanırım şöyle birşey var url olarak kabul etmiyor :S

    Bu sorunu nasıl çözücez?

    Ben url olarak eklemek istiyorum? anadizinde olmayınca bile kabul etmiyor :S
  • 12-03-2009, 09:10:03
    #11
    Bildiğim kadarıyla url olarak çalışan bir şekli yok bunun..
    Ancak sistem otomatik olarak dosyayı sizin sunucunuza indirip download işlemini başlatabilir diye düşünüyorum.
  • 12-03-2009, 09:25:00
    #12
    uzak dosyanın çağırımı diye birşey var burda
    PHP: Uzak dosyaların kullanımı - Manual

    Ben anlamadım bi bakarmısınız?
  • 13-03-2009, 01:51:51
    #13
    Kimlik doğrulama veya yönetimden onay bekliyor.
    <?php
    $filename = "http://img479.imageshack.us/img479/2173/1108071742nl9.jpg";
    
    if(ini_get('zlib.output_compression')) {
      ini_set('zlib.output_compression', 'Off');
    }
    
    header("Pragma: public");
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Cache-Control: private",false);
    header('Content-Type: application/octet-stream');
    header("Content-Disposition: attachment; filename=\"".basename($filename)."\"" );
    header("Content-Transfer-Encoding: binary");
    $baslik = get_headers($filename, 1);
    $size = $baslik['Content-Length'];
    header("Content-Length: ".$size);
    
    readfile("$filename");
    exit();
    ?>
  • 13-03-2009, 10:09:35
    #14
    çalışmadı :S kendim ekleim bi link yine olmadı :S aynı bu şekide de denedim kodu
  • 13-03-2009, 22:47:20
    #15
    Genc_Legend adlı üyeden alıntı: mesajı görüntüle
    çalışmadı :S kendim ekleim bi link yine olmadı :S aynı bu şekide de denedim kodu
    Sayfada hata çıkmıyor mu?

    Şöyle dene bir de:

    <?php 
    $filename = "http://img479.imageshack.us/img479/2173/1108071742nl9.jpg"; 
    
    if(ini_get('zlib.output_compression')) { 
      ini_set('zlib.output_compression', 'Off'); 
    } 
    
    header("Pragma: public"); 
    header("Expires: 0"); 
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 
    header("Cache-Control: private",false); 
    header('Content-Type: application/octet-stream'); 
    header("Content-Disposition: attachment; filename=\"".basename($filename)."\"" ); 
    header("Content-Transfer-Encoding: binary"); 
    
    readfile("$filename"); 
    exit(); 
    ?>
  • 13-03-2009, 23:25:25
    #16
    Şöyle bi hata verdi

    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 8
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 9
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 10
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 11
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 12
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 13
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 14
    
    Fatal error: Call to undefined function: get_headers() in /home/www/myonez.ch/test.php on line 15
    Şu son verdiğinizde de şu hatayı verdi

    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 8
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 9
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 10
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 11
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 12
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 13
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 14
    
    Warning: readfile(): URL file-access is disabled in the server configuration in /home/www/myonez.ch/test.php on line 16
    
    Warning: readfile(http://img479.imageshack.us/img479/2173/1108071742nl9.jpg): failed to open stream: no suitable wrapper could be found in /home/www/myonez.ch/test.php on line 16
  • 13-03-2009, 23:26:25
    #17
    bu htayı verdi sonuncusu
    Alıntı
    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 8

    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 9

    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 10

    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 11

    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 12

    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 13

    Warning: Cannot modify header information - headers already sent by (output started at /home/www/myonez.ch/test.php:1) in /home/www/myonez.ch/test.php on line 14

    Warning: readfile(): URL file-access is disabled in the server configuration in /home/www/myonez.ch/test.php on line 16

    Warning: readfile(http://img479.imageshack.us/img479/2...71742nl9.jpg): failed to open stream: no suitable wrapper could be found in /home/www/myonez.ch/test.php on line 16
    [/QUOTE][/QUOTE]
  • 14-03-2009, 18:38:57
    #18
    readfile() fonksiyonu kapatılmış. Host aldığın yerle konuşsan iyi olur. Bunun harici kod bulursam yazarım yine de.