note 771 modified in header by ronabop
| From: | ronabop@php.net | Date: | Sun, 01 Oct 2000 06:42:58 +0000 |
| Subject: | note 771 modified in header by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5747@lists.php.net to get a copy of this message | ||
Setting the File Name in a Download Dialog.
If you want to "suggest" a file name for a download to a browser, you can do this via the
header:
header( "Content-type: application/x-gzip" );
header( "Content-Disposition: attachment; filename=some-file.tar.gz" );
header( "Content-Description: PHP3 Generated Data" );
http://www.php.net/manual/function.header.php