Jump to content


Photo

Pushing file to client


  • Please log in to reply
No replies to this topic

#1 coennie

coennie
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 22 March 2006 - 03:25 PM

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:

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.");

Anybody who knows witch code to use with XP SP2?

Regards,

Coen van der Kolk




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users