Forum Moderators: coopster

Message Too Old, No Replies

Working with "mysqldump" in PHPscript. HOW?

backup'ing database with mysqldump in php.

         

khaki monster

2:57 pm on Feb 25, 2006 (gmt 0)

10+ Year Member



hi!

i have only some basic knowledge in PHP and MySQL which is only enough to construct a simpliest dynamic website :)

now question: how would i use the mysqldump utility to incorporate it in my PHP script to perform backuping of database.

hope to recieved some feedbacks from you guyz!

and tanx in advanced!

cheerz!

jatar_k

3:20 pm on Feb 25, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



as far as how the command works this page lays it out
[dev.mysql.com...]

I usually play around with it at the command line until I get the format I want. After that you can code it into a script in a similar fashion to using any other mysql command.

khaki monster

6:02 pm on Feb 25, 2006 (gmt 0)

10+ Year Member



i know the basic of dumping database with mysqldump in a "command". but with to integration to php... i a bit of confusion. i would appreciate if anyone can provide some sample in PHP scripting..

tanx for the attention anyway...
hope to hear more...

cheerz!

coopster

12:17 am on Feb 27, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You can run command line options with the PHP Program Execution Functions [php.net].