Please help, I got this code from googling on how to use mysql dump on php. But its just generating a blank .sql file. I already tried putting the mysqldump.exe on the same directory as the php file but doesn't work.
<?php
system('mysqldump -uroot -pmypassword test > C:\wamp\www\test\test.sql');
?>
I'm trying to do this, but I am running windows 7 and I get access denied error if I change the privileges in cmd.exe even if I'm the admin.
Please help, why is it generating a blank sql file? How do I solve this?