Do you want this file on a server or on each user's computer? Because you cannot save files to user's hard-drives (for security reasons).
PHP is a nice easy way to save files on a server though. Java works well too. You might even be able to use an AJAX file transmission kind of scheme too (something like a file upload).