fork download
  1. <?php
  2.  
  3. $uploaddir = 'uploads/user/';
  4. $uploadfile = basename($_FILES['uploadfile']['name']);
  5.  
  6. if (copy($_FILES['uploadfile']['tmp_name'], $uploaddir . mt_rand(0, 300) . $uploadfile))
  7. {
  8.  
  9. echo "<h3>Файл успешно загружен на сервер</h3>";
  10. }
  11. else { echo "<h3> Критическая </h3>"; exit; }
  12.  
  13. ?>
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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
stdout
Standard output is empty