Code: Select all
<?php
$download_size = filesize($storedfile);
header("Content-type: application/x-download");
header("Content-Disposition: attachment; filename=" . $filename . ";" );
header("Accept-Ranges: bytes");
header("Content-Length: $download_size");
?>Code: Select all
<?php
session_start();
// typically do session variable work here, but don't need to to get the error.
$download_size = filesize($storedfile);
header("Content-type: application/x-download");
header("Content-Disposition: attachment; filename=" . $filename . ";" );
header("Accept-Ranges: bytes");
header("Content-Length: $download_size");
?>Can someone else recreate this error? If so, I will report it on the php QA boards.
I am running under Windows XP Professional on IIS and useing the ISAPI interface as opposed to the CGI interface to PHP.