I am running it from a web browser, and I just set $outputDir to 'tmp' but I don't know where to go to set write permissions for all users.
–
Mr. HuntNov 28 '12 at 2:45

your temp folder would depend on your host... if you have ftp access, you can set write permission on a user defined folder with filezilla or most ftp clients.
–
soulfreshnerNov 28 '12 at 2:50

Yes I am using filezilla, I am trying to write the backup to a folder on my computer is that possible
–
Mr. HuntNov 28 '12 at 2:51

You could just use file_put_contents to output to the browser if you need to save to your local computer - but you can't automate the server to write to your local PC... unless it's the same machine
–
soulfreshnerNov 28 '12 at 2:57