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: Chris Anderson [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 1:16 AM
To: [EMAIL PROTECTED]
Subject: [PHP] MySQL Dump In PHP

I've been reading through the MySQL manual about backing up my database using mysql dump. I tried passing it as a Query in PHP but that doesn't seem to work. Does anyone know how to do this? Also does the dump back up the files into a directory I specify? I am on a virtual host and need to create the files in my own directories. Any help would be appreciated

Reply via email to