Jump to content

Archived

This topic is now archived and is closed to further replies.

coennie

Pushing file to client

Recommended Posts

hello,

I've wrote a script that will convert audiofiles from a db on the fly and after that it will push the file to the client. This all works great with with win 95,98,2000 and NT, but XP has a block on pushed downloads. The well know yellow bar at the top of the internet explorer window.

The script works as follow: select audio file => details audiofile => start conversion / progress bar after click => conversion done push file to client.

I try to push the file to the client with this code:

[code]
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Content-type: application/x-download");
header("Content-Disposition: attachment; filename={$doelbestand}");
header("Content-Transfer-Encoding: binary");
set_time_limit(0);
@readfile($bestand) or die("Ik kan de inhoud niet lezen.");
[/code]

Anybody who knows witch code to use with XP SP2?

Regards,

Coen van der Kolk

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.