Question: Is there any way I can verify the integrity of a remotely transferred file? I am currently transferring a large amount of files and folders from an ftp server to another remote server using wget, but I have no way of knowing if the files are corrupt.
Is there any way I can verify the integrity of the transfer, by getting something like the MD5 hash of the remote files? Is there any other file transfer protocol that supports this?

Answer: 
`rsync` is almost always the best answer for file transfers. It's best known for its differential optimization transfers (great when you already have a similar file or directory) but it profusely checksums every step of the transmissions.
That's a long shot, but if the server supports [php](https://php.net), you can exploit that.

Save the following as a `php` file (say, `check.php`), in the same folder as your `name_of_file.txt` file:

```
<? php
echo md5_file('name_of_file.txt');
php>

```

Then, visit the page `check.php`, and you should get the md5 hash of your file.

Related questions: 

* <https://stackoverflow.com/q/29909233/2657549>
* <https://stackoverflow.com/q/30626006/2657549>
* <https://stackoverflow.com/q/30056566/2657549>