Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199903

Re: [PHP3] Re: 2 small questions... From: Remigiusz Sokolowski (rems <email protected>)
Date: 03/15/99

> > Number 1 - I want to produce a CSV file of a set of records from a
> > database so that the users can import it into Excel (or similar). I
> > would like to know if there is a way i can force the browser to show a
> > file save dialog to save the file instead of showing the records on
> > screen and forcing them to save.
>
> Ok! Found the anwser:
>
> header("Content-Type: Pautas/Pautas");
>
> Is there a way to change the default name that the browser gives to the
> file ? (normally the xxx.ph[p3][tml])

It could be
        Header( "Content-Disposition: attachment;filename=\"yourname\"" );
but when I try it under IE4 instead yourname was some strange string...
This header is probably not implemented in all browsers.
        Rem

-------------------------------------------------------------------*------------
Remigiusz Sokolowski e-mail: rems <email protected> * *
-----------------------------------------------------------------*****----------

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>