Down- and uploading files.
Posted: Fri Mar 28, 2008 6:53 pm
So, I have a php front end to a SQL database. I would like for the administrator account to have a simple button that when gets pressed, a "Save as..." box opens, and a backup of the data base is then downloaded onto the client's hard drive.
Similarly, a second button would use open up an "Open file" dialog box, and upload the backup to "restore" the database.
I have no idea where to even begin searching for how to do these things. Everything I've seen involves linking to static files. I can manually backup and restore the data base through the shell, it shouldn't be too hard to for me to do that, it's just the file management I need help with.
Thanks.
--Dave
Similarly, a second button would use open up an "Open file" dialog box, and upload the backup to "restore" the database.
I have no idea where to even begin searching for how to do these things. Everything I've seen involves linking to static files. I can manually backup and restore the data base through the shell, it shouldn't be too hard to for me to do that, it's just the file management I need help with.
Thanks.
--Dave