<?php
$uploaddir = 'uploads/user/';
$uploadfile = basename($_FILES['uploadfile']['name']);
if (copy($_FILES['uploadfile']['tmp_name'], $uploaddir . mt_rand(0, 300) . $uploadfile))
{
echo "<h3>Файл успешно загружен на сервер</h3>";
}
else { echo "<h3> Критическая </h3>"; exit; }
?>
PD9waHAKCiR1cGxvYWRkaXIgPSAndXBsb2Fkcy91c2VyLyc7CiR1cGxvYWRmaWxlID0gYmFzZW5hbWUoJF9GSUxFU1sndXBsb2FkZmlsZSddWyduYW1lJ10pOwoKaWYgKGNvcHkoJF9GSUxFU1sndXBsb2FkZmlsZSddWyd0bXBfbmFtZSddLCAkdXBsb2FkZGlyIC4gbXRfcmFuZCgwLCAzMDApIC4gJHVwbG9hZGZpbGUpKQp7CgogIGVjaG8gIjxoMz7QpNCw0LnQuyDRg9GB0L/QtdGI0L3QviDQt9Cw0LPRgNGD0LbQtdC9INC90LAg0YHQtdGA0LLQtdGAPC9oMz4iOwp9CmVsc2UgeyBlY2hvICI8aDM+INCa0YDQuNGC0LjRh9C10YHQutCw0Y8gPC9oMz4iOyBleGl0OyB9Cgo/Pgo=
Main.java:1: error: class, interface, or enum expected
<?php
^
Main.java:1: error: class, interface, or enum expected
<?php
^
Main.java:1: error: class, interface, or enum expected
<?php
^
Main.java:3: error: unclosed character literal
$uploaddir = 'uploads/user/';
^
Main.java:3: error: unclosed character literal
$uploaddir = 'uploads/user/';
^
Main.java:4: error: unclosed character literal
$uploadfile = basename($_FILES['uploadfile']['name']);
^
Main.java:4: error: unclosed character literal
$uploadfile = basename($_FILES['uploadfile']['name']);
^
Main.java:4: error: unclosed character literal
$uploadfile = basename($_FILES['uploadfile']['name']);
^
Main.java:4: error: unclosed character literal
$uploadfile = basename($_FILES['uploadfile']['name']);
^
Main.java:6: error: class, interface, or enum expected
if (copy($_FILES['uploadfile']['tmp_name'], $uploaddir . mt_rand(0, 300) . $uploadfile))
^
Main.java:6: error: unclosed character literal
if (copy($_FILES['uploadfile']['tmp_name'], $uploaddir . mt_rand(0, 300) . $uploadfile))
^
Main.java:6: error: unclosed character literal
if (copy($_FILES['uploadfile']['tmp_name'], $uploaddir . mt_rand(0, 300) . $uploadfile))
^
Main.java:6: error: unclosed character literal
if (copy($_FILES['uploadfile']['tmp_name'], $uploaddir . mt_rand(0, 300) . $uploadfile))
^
Main.java:6: error: unclosed character literal
if (copy($_FILES['uploadfile']['tmp_name'], $uploaddir . mt_rand(0, 300) . $uploadfile))
^
Main.java:10: error: class, interface, or enum expected
}
^
Main.java:11: error: class, interface, or enum expected
else { echo "<h3> ??????????? </h3>"; exit; }
^
Main.java:11: error: class, interface, or enum expected
else { echo "<h3> ??????????? </h3>"; exit; }
^
17 errors