You need to use an FTP client from your local computer to access the server. The server itself cannot write to your local computer, unless you turn it into a server itself.
solved How to copy file from hosted server to local drive using PHP [closed]