Re: JS alert that links to a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



LinuxManMikeC wrote:

<?php
header('Content-type: text/csv');
header('Content-Disposition: attachment; filename="file.csv"');
echo 'field1,field2,field3,field4';
?>


Okay, right, I remember this.

But it has to be in it's own file, otherwise you get the 'headers already sent error', right?

Is there any way around that? Any way to get it right at the end of where the file is created???

Thanks!
Skip

--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux