File:  [mozdev] / savefileto / www / test / file_png_no_cd.php
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sun Jul 13 18:08:35 2008 UTC (11 years, 10 months ago) by atte
Branches: MAIN
CVS tags: HEAD
initial import

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

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