I use the mysqldump command line utility to do this and I don't know how to
interface that from PHP. However:
I just checked how phpMyAdmin does it and apparently it has functions that
re-create the dump using queries. You might want to download it
(http://www.phpwizard.net/projects/phpMyAdmin/)
mysqldump is a command to be used at a prompt, from php
you could
system
("mysqldump whatever > /tmp/dump.sql");
---
Toolshed Computer Productions - Professional PHP Hosting
Hosting - Dedicated Servers - Design - Programming
http://www.toolshed51.com
-Original Message-From: Chri
2 matches
Mail list logo