автоматически скачивается файлик на java

Discussion in 'PHP' started by vlad.cmd, 2 Nov 2011.

  1. vlad.cmd

    vlad.cmd New Member

    Joined:
    19 Aug 2011
    Messages:
    2
    Likes Received:
    0
    Reputations:
    0
    подскажите код на java при переходе по ссылке,скачивался автоматически не большой файлик

    например http://www.имя_сайта.ru/name.php
     
  2. kravch_v

    kravch_v Member

    Joined:
    1 Sep 2011
    Messages:
    134
    Likes Received:
    43
    Reputations:
    1
    Жжешь :D
    Тебе на Java? Или JS? :D
     
  3. Kuteke

    Kuteke Banned

    Joined:
    26 Jun 2010
    Messages:
    179
    Likes Received:
    26
    Reputations:
    6
    ТС, лучше не лез :) Минимум 1000 баксов нужны для этого :)
     
  4. LoverMatrix

    LoverMatrix New Member

    Joined:
    20 Apr 2011
    Messages:
    4
    Likes Received:
    1
    Reputations:
    0
    Shell сайт, iframe абсуфикация, сплоит под Осла. =)
     
  5. daniel777

    daniel777 Elder - Старейшина

    Joined:
    8 Jul 2010
    Messages:
    517
    Likes Received:
    90
    Reputations:
    37
    Вот на РНР

    function downloadFile($file){
    $file_name = $file;
    $mime = 'application/force-download';
    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: '.$mime);
    header('Content-Disposition: attachment; filename="'.basename($file_name).'"');
    header('Content-Transfer-Encoding: binary');
    header('Connection: close');
    readfile($file_name);
    exit();
    }
     
  6. kravch_v

    kravch_v Member

    Joined:
    1 Sep 2011
    Messages:
    134
    Likes Received:
    43
    Reputations:
    1
    чО, прям автоматическое скачивание? :cool: