Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ss23
Created April 10, 2021 05:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ss23/04797f05fafa1f2337f59d8d2a70711f to your computer and use it in GitHub Desktop.
Save ss23/04797f05fafa1f2337f59d8d2a70711f to your computer and use it in GitHub Desktop.
<?php
$file = $_GET['file'] ?? '/tmp/file';
$data = $_GET['data'] ?? ':)';
file_put_contents($file, $data);
echo file_get_contents($file);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment