What kind of file is it? A mime-type or content-type header will usually cause the browser to react correctly. Say you download an EXE under Windows... IE recognizes the content-type as an application and prompts you to save the EXE or run it directly. If you're dynamically generating content using PHP for download, you can specify your own content-type. For instance, if you were streaming a zip file back to the user
<? php
header("content-type: application/x-zip");
$fd = fopen(...some zip file...);
// fpassthru the file
fclose($fd);
?>
See this page for some general concepts:
http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html
Dave
===========================================
http://badblue.com
Free small footprint web server for Windows
P2P file-sharing, PHP, wireless apps & more