You are here: hi « PHP Programming Language « IT news, forums, messages
hi

Posted by aksharmavoice on 06/08/07 07:41

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация