i want php code to import *.sql file to database and export db to *.sql file without going to phpmyadmin
A:
exec("mysqldump database -u username -p password > output.sql");
hoppa
2010-03-22 11:25:23