Forum Moderators: coopster

Message Too Old, No Replies

Automatic downloading?

         

ahmedtheking

11:07 pm on Oct 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You know when you export from phpmyadmin, you can export XML, Excel and so on... What actually makes the export come up as a downloaded file? As in it automatically pops up with 'file download' instead of just opening it in the brower?

Netter

11:26 pm on Oct 25, 2005 (gmt 0)

10+ Year Member



headers like

Header("Content-Type: application/octetstream;...");

they must be before the file output

go google for more ;)

jatar_k

6:58 am on Oct 26, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



try this thread, covers some headers for csv's at least

[webmasterworld.com...]

ahmedtheking

9:51 pm on Oct 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



fantastic, thanks!