Hi everyone,
Does somebody know how to open a prompt window to 'save as' the content of my database.
Thanks for your help.
Prompt for database content backup
Moderator: General Moderators
- orangeapple
- Forum Commoner
- Posts: 70
- Joined: Tue Jan 06, 2004 1:24 pm
- Location: Geneva / Switzerland
take a look at http://www.php.net/fread
- orangeapple
- Forum Commoner
- Posts: 70
- Joined: Tue Jan 06, 2004 1:24 pm
- Location: Geneva / Switzerland
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
like be able to download the contents of the database? that i have never done but i would imagine doing somthing like
-get contents of database and make it nice and neat looking
-create a new txt file with some random name and then write the info to the txt file
-redirect the user to the new text file so it shows it and they can do whatever with it
there might be able to do other things or whatnot but thats what i would do
-get contents of database and make it nice and neat looking
-create a new txt file with some random name and then write the info to the txt file
-redirect the user to the new text file so it shows it and they can do whatever with it
there might be able to do other things or whatnot but thats what i would do
Some of this depends on the database of course, but you need to issue the appropriate commands to the database to dump itself to a file. Once that's done, then you could zip, tar, or whatever then either save it to disk (which I would do anyways), email it to the user, or have the individual download it.orangeapple wrote:I need to script in php to enable the client to save the content of the database where he wants to.
Tkx
Those are your basic steps.