PHP->binary content (Hm?!)
    ~
Advanced Hosters -

IseeDeadPeople
: 06.12.2005
: 18000
# : 25, 2008 3:11 pm
..
.. ?

?

?

.
http://m.lsl.com/

choor
-
: 09.11.2005
: 2097
Star (: 1)
# : 25, 2008 3:54 pm
, Content-type, filesize
How would you like to suck my balls, Mr. Garrison?!?! :mrgreen:

ctapbiu
: 06.01.2008
: 328
# : 25, 2008 9:06 pm
:

<?php
$mm_type="application/octet-stream";

header("Cache-Control: public, must-revalidate");
header("Pragma: hack");
header("Content-Type: " . $mm_type);
header("Content-Length: " .(string)(filesize($fullpath)) );
header('Content-Disposition: attachment; filename="'.$filename.'"');
header("Content-Transfer-Encoding: binary\n");
                 
readfile($fullpath);
?>

    ~