[nycphp-talk] Downloading a CSV file
Jon Baer
jonbaer at jonbaer.net
Tue Sep 7 23:03:11 EDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Faber Fedor wrote:
| The only other thing I can think of is to have PHP grab the
| dataset, format the data as CSV and then...what? Display it in her
| browser and have her do a File->Save? Not nice, IMO.
|
| Any brilliant ideas?
You could adjust her MIME options to allow her to open/run the file
automatically instead of File-Save, I beleive Firefox/IE give you this
option .. in other words you dont always have to save. Give yourself a
custom header and it should pipe the data through.
Personally Ive found cron'ing mysql jobs w/ XML to be a pretty nice way
of having the data around for multiple uses and using XSL (albeit not an
expert but finding it pretty handy once you figure the cryptic
templating out) :-)
- - Jon
- --
pgp key: http://www.jonbaer.net/jonbaer.asc
fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBPnZvQdvbi5oMr0cRAkwmAJ93CTe56II8jBZh5YWx05qZ/R5BcQCeOC1o
l6IfcEqpzVfEXVc952pWP8A=
=KZFU
-----END PGP SIGNATURE-----
More information about the talk
mailing list