Paste RAW text to a webserver in one file
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Fuchs 3e9a89a305 Update link 7 months ago
.gitignore add gitignore 8 months ago
LICENSE Initial commit 9 months ago
README.md „README.md“ ändern 8 months ago
index.php Update link 7 months ago

README.md

PHP Paste

A PHP script that allows you to paste text to a webserver. The text will be stored as .txt file and you can share a link with your friends.

It also encodes and decodes Base64 strings.

Install

Go to you webroot like /var/www/html and clone the repo.

cd /var/www/html/

git clone https://git.koh.cloud/fuchs/php_paste.git

mv php_paste paste

Make sure that your webuser like www-data have write rights to the raw/ folder.

sudo chown www-data:www-data /var/www/html/paste/raw

Thats it. Go to https://example.com/paste/ and enjoy the simple paste to .txt funktion.

Addition

You can run a cronjob to clean up the raw/ folder

sudo -u www-data crontab -e

remove all files in raw/ every night at 04:00

0 4 * * * rm /var/www/html/paste/raw/*