On Windows, add the path to mysqldump to the executable to your PATH environment variable.
http://www.computerhope.com/issues/ch000549.htm
You can then run mysqldump from any folder. Typically common tools are added the PATH variable by installers, but sometimes if you are installing a tool manually you need to add it yourself.
Your PHP code should not have to search the filesystem to find mysqldump.