Forcing an XML file download ... where to start?
Posted: Fri Jul 18, 2008 10:22 am
Sorry if I'm not using the proper terminology here, but it's the first time I'm trying to do this and I'm not sure what keywords I should be looking for.
I have a script that generates a MySQL query on demand and stores the result set in an XML file on my web server. I would like to then offer that file to the site visitor as a download - but want to be sure it gets 'pushed' to the browser as a download (have the dialog box pop up asking where to save the file), not to have the browser open and read the file.
Ultimately my clients take this data and import it to an Access or FileMaker Pro file on their PC.
Is this a php thing, an html thing, do I HAVE to use Javascript? My absolute preference would be to do this as much in php as possible.
Thanks for whatever help or suggestion or link you can offer!
Jeff
I have a script that generates a MySQL query on demand and stores the result set in an XML file on my web server. I would like to then offer that file to the site visitor as a download - but want to be sure it gets 'pushed' to the browser as a download (have the dialog box pop up asking where to save the file), not to have the browser open and read the file.
Ultimately my clients take this data and import it to an Access or FileMaker Pro file on their PC.
Is this a php thing, an html thing, do I HAVE to use Javascript? My absolute preference would be to do this as much in php as possible.
Thanks for whatever help or suggestion or link you can offer!
Jeff