Jump to content

Pushing file to client


coennie

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
Link to comment
https://forums.phpfreaks.com/topic/5506-pushing-file-to-client/
Share on other sites

Archived

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

×
×
  • Create New...

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.