It turns out to be quite simple. Just play with the PHP header() function header("Content-Type: $application/$Format"); header("Content-Disposition: attachment; filename=$file_name"); --- Boaz Yahav <berber@netvision.net.il> wrote: > This looks like a great example to add to weberdev. > If you get the > answer, > would you care to spend 3 minutes and let other PHP > developers enjoy > from > your knowledge? > > You are one click away from doing a good deed :) > > http://www.weberdev.com/index.php3?GoTo=addexample.php3 > > Sincerely > > berber > > Visit http://www.weberdev.com Today!!! > To see where PHP might take you tomorrow. > > > > -----Original Message----- > From: Qunfeng Dong [mailto:dongqunfeng@yahoo.com] > Sent: Thursday, January 23, 2003 3:32 AM > To: php-db@lists.php.net > Subject: save output to a file instead of > displaying in the > browser > > > Hi, > > I am trying to build a PHP-MySQL application. When > users query our database from our web interface, how > can I send the output to a file for users to save it > to his local disk instead of displaying the output > to > the browser. > > Thanks, > > Qunfeng > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > http://mailplus.yahoo.com > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php