Download Plugin – http://wordpress.org/extend/plugins/wp-members/ Description WP-Members™ is a plugin to make your WordPress blog a membership driven site.…
The headers look like so, substituting filename.csv for the name you would like: header('Content-type: application/octet-stream'); header('Content-Disposition: attachment; filename="filename.csv"');