Programming: September 2017 Archives

curl -T to PUT file to PHP

user-pic
Vote 0 Votes

Sender
curl -T file http://host/upload.php

Receiver upload.php code
if ($_SERVER["REQUEST_METHOD"]=="PUT") file_put_contents(date("YmdHis") ,file_get_contents("php://input"));
// date("YmdHis") is output filename

About this Archive

This page is an archive of entries in the Programming category from September 2017.

Programming: May 2016 is the previous archive.

Programming: December 2019 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives