[_] 3gp video over HTTP
Matt Williams
matt at energymind.com
Mon Aug 7 18:10:42 BST 2006
> Hmmm, yes that's interesting. The site's done in PHP/Drupal so I
> can envisage pushing it out through a stream. I'm guessing your
> solution was in JSP - is there any chance you could post up a
> snippet so I can transcode your exact content-type settings?
<?
$filename = "name of file.3gp";
header("Content-Type: video/3gpp");
header(sprintf('Content-Disposition: attachment; filename="%
s"',urlencode($filename)));
header('Content-Transfer-Encoding: binary');
header(sprintf('Content-Length: %d',filesize($filename)));
readfile($filename);
exit();
?>