Jump to content

habeebnet

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

habeebnet's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Here's my file download script.... [code] set_time_limit(0); $speed = 10; header("Cache-control: private"); header('Content-Description: File Transfer'); header('Content-Type: application/force-download'); header('Content-Length: ' . filesize($fileLocation . $fileName)); header('Content-Disposition: attachment; filename=' . $fileName); if (!$file = fopen($fileLocation . $fileName, 'r')) {       exit(); } while (!feof($file)) {       echo fread($file, $speed * 1024 * 8);       flush();       sleep(1); }[/code] when this script runs, a file dialogue box will appear with a 'save' and 'cancel' button.. I'm looking for a way to set a variable (say $status=TRUE) TRUE when somebody clicks on save button. And  when downlaods completes, the variable should set to FALSE. I trying to implement this for the last two days... but always the variable will set to to TRUE before i click 'Save'.. Can anybody help me? Many Thanks -Hab-
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.