Hi All, This is something I have working nicely now, and I know theres been posts on here before without any satisfactory answer, but this eeems to cover all. When you have a script that returns a file, you obviously want to return a file which looks right. Ths initially simple looking way of doing this is by using the "Content Disposition" header. This however has many problems.. when calling a script say getfile.php?name=my_file which looks up in the database to find that file and return it, a lot of browsers may (intermittently) prompt you to open/save getfile.php.. you then have to open this (sometimes twice) to be prompted to download my_file.zip. The solution... sadly its not a PHP one..... On apache theres an extention called mod_rewrite (there are equivalents for other servers) that basically uses regular expression to rewrite urls (which can be useful in soo many situations). using this you can specify a rule something like RewriteRule /downloads/([^/.]+).zip getfile.php?name=$1 which basically says that if the user requests the url of something like /downloads/silly.zip then it is redirected to getfile.php?name=$1..neat, huh? Remove the Content Disposition line from your php script and it will all work wonderfully well!! Also good for DB stored images you don't want to appear as .php! hope this helps some people... Tom "Rambling" Carter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]