Sending file contents in $_POST with PHP

Below is an example of how you can use HTTP PUT to transfer a local file a remote URL with PHP

 The sending function

The receiver function

This piece of code will be used in order to handle the receiving file. As stated above this must be run  inside “”