Ave,

Which page do you give this code in?
For example, I have a page admin.php .... Therein is the link on which, when
a user clicks, a window "admin_dl.php" opens. The "admin_dl.php" contains my
force-download code and it is that window that I'm trying to close.

If I specify this following code in admin.php itself, would it work?
Admin.php does contain a lot of other stuff too.




On 8/31/04 6:31 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> header("Content-Type: application/force-download");
> header("Content-Type: application/octet-stream");
> header("Content-Type: application/download");
> header("Content-Type: $mimetype");
> header("Content-Disposition: attachment; filename=filename.ext");
> header("Content-Transfer-Encoding: binary");
> header("Accept-Ranges: bytes");
> header("Content-Length: $filesize");
> $fo = fopen("/path/to/filename.ext","r");
> fpassthru($fo);
> fclose($fo);

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to