• 08-05-2010, 12:10:17
    #1
    Üyeliği durduruldu
    	header('Content-Description: File Transfer');
        header('Content-Type: application/octet-stream');
        header('Content-Disposition: attachment; filename='.basename($url));
        header('Content-Transfer-Encoding: binary');
        header('Expires: 0');
        header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
        header('Pragma: public');
        header('Content-Length: ' . filesize($url));
        ob_clean();
        flush();
        readfile($url);
        exit;
    şeklinde videoyu indiriyorum fakat açtığımda gom player details dediğimde download.pho line 12 de hata var diyor oda
        header('Content-Length: ' . filesize($url));
    kısmına tekabbül ediyor sizce nasıl düzeltirim yada nasıl indirim videoyu...
  • 08-05-2010, 12:14:32
    #2
    verdiği hatayı da yazsaydınız daha iyi olurdu kanımca..
  • 08-05-2010, 12:20:34
    #3
    Üyeliği durduruldu
    --------------------
    BINARY INFO
    --------------------
    FileName : 106776999363591_34037 (2).mp4
    Header Data : 
    3c 62 72 20 2f 3e 0a 3c 62 3e 57 61 72 6e 69 6e  <br />.<b>Warnin
    67 3c 2f 62 3e 3a 20 20 66 69 6c 65 73 69 7a 65  g</b>:  filesize
    28 29 20 5b 3c 61 20 68 72 65 66 3d 27 66 75 6e  () [<a href='fun
    63 74 69 6f 6e 2e 66 69 6c 65 73 69 7a 65 27 3e  ction.filesize'>
    66 75 6e 63 74 69 6f 6e 2e 66 69 6c 65 73 69 7a  function.filesiz
    65 3c 2f 61 3e 5d 3a 20 73 74 61 74 20 66 61 69  e</a>]: stat fai
    6c 65 64 20 66 6f 72 20 68 74 74 70 3a 2f 2f 76  led for http://v
    69 64 65 6f 2e 6c 33 2e 66 61 63 65 62 6f 6f 6b  ideo.l3.facebook
    2e 63 6f 6d 2f 63 66 73 2d 6c 33 2d 73 66 32 70  .com/cfs-l3-sf2p
    2f 32 37 36 36 39 2f 38 38 30 2f 31 30 36 37 37  /27669/880/10677
    36 39 39 39 33 36 33 35 39 31 5f 33 34 30 33 37  6999363591_34037
    2e 6d 70 34 20 69 6e 20 3c 62 3e 2f 68 6f 6d 65  .mp4 in <b>/home
    2f 66 61 63 65 62 6f 6f 6b 2f 70 75 62 6c 69 63  /facebook/public
    5f 68 74 6d 6c 2f 69 6e 64 69 72 2e 70 68 70 3c  _html/indir.php<
    2f 62 3e 20 6f 6e 20 6c 69 6e 65 20 3c 62 3e 31  /b> on line <b>1
    32 3c 2f 62 3e 3c 62 72 20 2f 3e 0a 3c 62 72 20  2</b><br />.<br 
    2f 3e 0a 3c 62 3e 57 61 72 6e 69 6e 67 3c 2f 62  />.<b>Warning</b
    3e 3a 20 20 43 61 6e 6e 6f 74 20 6d 6f 64 69 66  >:  Cannot modif
    79 20 68 65 61 64 65 72 20 69 6e 66 6f 72 6d 61  y header informa
    74 69 6f 6e 20 2d 20 68 65 61 64 65 72 73 20 61  tion - headers a
    6c 72 65 61 64 79 20 73 65 6e 74 20 62 79 20 28  lready sent by (
    6f 75 74 70 75 74 20 73 74 61 72 74 65 64 20 61  output started a
    74 20 2f 68 6f 6d 65 2f 66 61 63 65 62 6f 6f 6b  t /home/facebook
    2f 70 75 62 6c 69 63 5f 68 74 6d 6c 2f 69 6e 64  /public_html/ind
    69 72 2e 70 68 70 3a 31 32 29 20 69 6e 20 3c 62  ir.php:12) in <b
    3e 2f 68 6f 6d 65 2f 66 61 63 65 62 6f 6f 6b 2f  >/home/facebook/
    70 75 62 6c 69 63 5f 68 74 6d 6c 2f 69 6e 64 69  public_html/indi
    72 2e 70 68 70 3c 2f 62 3e 20 6f 6e 20 6c 69 6e  r.php</b> on lin
    65 20 3c 62 3e 31 32 3c 2f 62 3e 3c 62 72 20 2f  e <b>12</b><br /
    3e 0a 00 00 00 1c 66 74 79 70 46 41 43 45 00 00  >.....ftypFACE..
    05 39 69 73 6f 6d 61 76 63 31 46 41 43 45 00 00  .9isomavc1FACE..
    18 65 6d 6f 6f 76 00 00 00 6c 6d 76 68 64 00 00  .emoov...lmvhd..
    olduğu gibi kopyaladım
  • 08-05-2010, 12:40:59
    #4
    Protocols/Wrappers aktif olduğundan emin oldukdan sonra, facebook güvenlik önlemi olarka referer useragent kontrolleri yapabilir bu yüzden filesize yerine curl kullanırsanız bunları aşabilirsiniz. Fakat curl dan önce kodların en başına error_reporting(0); koyarak deneyebilir misiniz. Bu şekilde bütün hatalar gizlenecektir. Gördüğüm kadarı ilede zaten dosya okuma işlemi gerçekleşiyor (hatadan sonra gördüğüm kadarı ile). error_reporting'i denemenizde yarar var.