Advertisement
Guest User

Untitled

a guest
May 14th, 2015
1,864
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. <?php
  2. $filename=$_GET['filename'];
  3. $path = -snip-
  4. $fileData=file_get_contents('php://input');
  5. $fhandle=fopen($path . $filename, 'wb') or die('can not open file');
  6. fwrite($fhandle, $fileData);
  7. fclose($fhandle);
  8. echo("Done uploading");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement