RE: [PHP] how to specify name of file to be downloaded?

From: Date: Wed, 27 Sep 2000 21:02:28 +0000
Subject: RE: [PHP] how to specify name of file to be downloaded?
Groups: php.general 
Request: Send a blank email to php-general+get-17780@lists.php.net to get a copy of this message
header("Content-Disposition: attachment; filename=$filename"); Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. > -----Original Message----- > From: Jakob Fix [mailto:jakob@free.fr] > Sent: Tuesday, September 26, 2000 12:33 AM > To: php-general@lists.php.net > Subject: [PHP] how to specify name of file to be downloaded? > > > > i want to give users the possibility to download certain > information from a > database as files. to do this, i specify a binary mime type > in a header() > statement that will pop up the download dialog box, and do > what i want. > > however, the proposed default name of the file is the name of > the executing > php page. is there a way to specify another name to be used instead? > > thanks in advance for your help, > Jakob. > > ps: cc to me appreciated, as i'm on the digest list. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.general (#17780) next »