Web-based Paste Server Script

Sometimes I need to transfer text from my Android smart phone to my Linux PC. There are many many ways to do this I guess, but I wanted something easy under my control. All phones have web browsers, so I settled on the classic solution of simply running a PHP script served by an Apache HTTP server. The script just displays the input form, and on a POST request saves the contents to a timestamped…