chuckylefrek — 2010-02-10T05:09:10-05:00 — #1
A client has asked if I can create an admin facility to enable them to export the data from the MYSQL database to a text file on the users hard drive.
Is this even possible? I was thinking perhaps not however I was recently able to create and save a pdf to a users hard drive using fpdf php class.
Any advice much appreciated.
system — 2010-02-10T05:14:53-05:00 — #2
What is the critical difference you see between pdf and text file, that prevents last one from being saved on the client's computer?
chuckylefrek — 2010-02-10T05:37:29-05:00 — #3
The only difference is I had a function in fpdf to save the PDF to the users hard drive whereas I don't have any such function to save a text file to a users hard drive:)
system — 2010-02-10T05:50:49-05:00 — #4
Search this forum for the something like force-download and most likely you will find a code you need
chuckylefrek — 2010-02-10T05:55:25-05:00 — #5
Ah cool - thanks for the magic search terms - I did try searching for "save file" but had no joy
webhost4uu_com — 2010-02-10T07:25:56-05:00 — #6
hmm why would you want to save a file to a users hard drive will the end user know your doing this?
chuckylefrek — 2010-02-10T07:32:23-05:00 — #7
Basically it is for an admin facility so someone who has not got access to phpMyAdmin can save the data that has been submitted to the database to a file that they can then process.
I would have thought this is a really common need as lots of websites write data to the database and there must be some way of those less technical people getting a hold of this data.
hash — 2010-02-10T07:41:50-05:00 — #8
They get it via the technical ppl
This is far more than a common need, it is standard practice, just not in the way you envision.
chuckylefrek — 2010-02-10T08:16:42-05:00 — #9
Thanks hash - so are you saying the technical ppl manually retrieve this information from the server for the non technical ppl?