File:  [mozdev] / savefileto / www / test / file_png_cd space.php
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sun Aug 23 08:32:03 2009 UTC (10 years, 9 months ago) by atte
Branches: MAIN
CVS tags: HEAD
added filename decode tests (%20 (space), etc.)

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

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