File:  [mozdev] / savefileto / www / test / file_png_cd_delay.php
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Wed Jul 30 18:34:59 2008 UTC (11 years, 9 months ago) by atte
Branches: MAIN
CVS tags: HEAD
increased delay to 5s

    1: <?php
    2: $file = "file.png";
    3: $contentType = "image/png";
    4: $delay = 5;
    5: 
    6: sleep($delay);
    7: 
    8: header("Content-Length: " . filesize($file));
    9: header("Content-Type: " . $contentType);
   10: header("Content-Disposition: inline; filename=\"" . $file . "\"");
   11: readfile($file);
   12: ?>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>