I was writing a database backup script and got it all working, have it running on our live servers on linux but our local dev. is apache on windows and I am having issues getting it to run. Now, I can get the command line "zip" functions working but the mysqldump always returns a empty file. If I copy the code and input directly into windows command line it works. I even tried putting the cmd.exe file inside the php.exe directory. So it seems php does have access because I can run zip through exec. mysqldump seems to run but it always returns a blank file no matter what. Any ideas? the mysql bin folder is inside the windows pathing also, the user name/pass/database selection is all correct (if I copy the same php code into the command line it works so it has to be some kinda of permission issue I would assume)