![]() |
Backing up a Database NOT via PHPMyAdmin
Hello.
I would like to be able to back up parts of my database by providing a form / link which will give the admin the choice to download the file in a sql format (like in IPB). I have researched this a little; and been succesful in being able to backup the database into a location on the server where I define, but I'm not sure how I can change it into being download-able (obviously if it is downloaded I don't want it on the server anymore...). This is what I have so far (I have commented it): PHP Code:
Much appreciated. Gareth |
Hi Gareth,
Completely un-tested, but something like the following should do the trick PHP Code:
Alan. |
That should work.
|
Thanks! Should this go at the top?
|
That needs to be present after the query is known to be successful; there shouldn't be any output up to or past that point. ;-)
|
| All times are GMT. The time now is 02:58 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0