Connecting Tech Pros Worldwide Forums | Help | Site Map

hi

aksharmavoice@gmail.com
Guest
 
Posts: n/a
#1: Jun 8 '07
I made a script to download a file. when it is executed the IE ask to
open or save the file.
If I first save then open file get open. But in case I click on open
file without saving my disk it show a problem that "Can not find
temporay file".

header('Content-Description: File Transfer');
header('Content-Type: application/force-download');
header ("Content-Length: " . filesize($file_full_path));
header ("Content-Disposition: attachment; filename=".
$fileData['fld_fileName']);
header("Content-Transfer-Encoding: binary");
readfile($file_full_path);

Can any help.


Closed Thread


Similar PHP bytes