fork download
  1. $uploaddir = 'uploads/user/';
  2. $uploadfile = $uploaddir.basename($_FILES['uploadfile']['name']);
  3.  
  4. if (copy($_FILES['uploadfile']['tmp_name'], $uploadfile))
  5. {
  6. $image_fieldname = $_FILES['uploadfile']['name'];
  7. }
  8. else { echo "<h3>Критическая ошибочка!</h3>"; exit; }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
$uploaddir = 'uploads/user/';
^
Main.java:1: error: unclosed character literal
$uploaddir = 'uploads/user/';
             ^
Main.java:1: error: unclosed character literal
$uploaddir = 'uploads/user/';
                           ^
Main.java:2: error: unclosed character literal
$uploadfile = $uploaddir.basename($_FILES['uploadfile']['name']);
                                          ^
Main.java:2: error: unclosed character literal
$uploadfile = $uploaddir.basename($_FILES['uploadfile']['name']);
                                                     ^
Main.java:2: error: unclosed character literal
$uploadfile = $uploaddir.basename($_FILES['uploadfile']['name']);
                                                        ^
Main.java:2: error: unclosed character literal
$uploadfile = $uploaddir.basename($_FILES['uploadfile']['name']);
                                                             ^
Main.java:4: error: class, interface, or enum expected
if (copy($_FILES['uploadfile']['tmp_name'], $uploadfile))
^
Main.java:4: error: unclosed character literal
if (copy($_FILES['uploadfile']['tmp_name'], $uploadfile))
                 ^
Main.java:4: error: unclosed character literal
if (copy($_FILES['uploadfile']['tmp_name'], $uploadfile))
                            ^
Main.java:4: error: unclosed character literal
if (copy($_FILES['uploadfile']['tmp_name'], $uploadfile))
                               ^
Main.java:4: error: unclosed character literal
if (copy($_FILES['uploadfile']['tmp_name'], $uploadfile))
                                        ^
Main.java:6: error: unclosed character literal
  	  $image_fieldname = $_FILES['uploadfile']['name'];
  	                             ^
Main.java:6: error: unclosed character literal
  	  $image_fieldname = $_FILES['uploadfile']['name'];
  	                                        ^
Main.java:6: error: unclosed character literal
  	  $image_fieldname = $_FILES['uploadfile']['name'];
  	                                           ^
Main.java:6: error: unclosed character literal
  	  $image_fieldname = $_FILES['uploadfile']['name'];
  	                                                ^
Main.java:7: error: class, interface, or enum expected
	}
	^
Main.java:8: error: class, interface, or enum expected
else { echo "<h3>??????????? ????????!</h3>"; exit; }
                                              ^
Main.java:8: error: class, interface, or enum expected
else { echo "<h3>??????????? ????????!</h3>"; exit; }
                                                    ^
19 errors
stdout
Standard output is empty