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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.