Upload, Download and Delete File using PHP MySQL PHP Script


Upload, Download and Delete File using PHP MySQL PHP Script

In this article, we are going to learn how to create Upload, Download and Delete File using PHP MySQL. This simple program, a user can learn how to code for uploading, downloading, and deleting files using PHP MySQL. This program can serve as your File Manager.
Features

Upload any file
Download your file
Delete your file

Sample Source Code

This PHP source code contains INSERT Statement to save the data into the database.

 

 

    <?php
    $conn=new PDO('mysql:host=localhost; dbname=myweb', 'root', '') or die(mysql_error());
    if(isset($_POST['submit'])!=""){
      $name=$_FILES['photo']['name'];
      $size=$_FILES['photo']['size'];
      $type=$_FILES['photo']['type'];
      $temp=$_FILES['photo']['tmp_name'];
      $date = date('Y-m-d H:i:s');
      $caption1=$_POST['caption'];
      $link=$_POST['link'];
     
      move_uploaded_file($temp,"files/".$name);
     
    $query=$conn->query("INSERT INTO upload (name,date) VALUES ('$name','$date')");
    if($query){
    header("location:index.php");
    }
    else{
    die(mysql_error());
    }
    }
    ?>

 

 

Learn How to install Upload, Download and Delete File using PHP MySQL PHP Script?



Find More related Upload, Download and Delete File using PHP MySQL PHP Script



Upload PHP Script | Download PHP Script | Delete PHP Script | File PHP Script | Using PHP Script | Php PHP Script | Mysql PHP Script | Php PHP Script | Script PHP Script | Th PHP Script | Article PHP Script | we PHP Script | Going PHP Script | To PHP Script | Learn PHP Script | How PHP Script | To PHP Script | Create PHP Script | Upload PHP Script | Download PHP Script | Delete PHP Script | File PHP Script | Using PHP Script | Php PHP Script | Mysql PHP Script | Th PHP Script | Simple PHP Script | 2021 Top 100 Upload PHP Script | Top 10 Download PHP Script | 2021 Top 40 Delete PHP Script | Top 100 File PHP Script | Top 50 Using PHP Script | 2021 Top 100 Php PHP Script | Top 20 Mysql PHP Script | Top 100 Php PHP Script | Top 10 Script PHP Script | Top 100 Th PHP Script | Top 200 Article PHP Script | Top 500 we PHP Script | Top 5000 Going PHP Script | Top 50 To PHP Script | Top 50 Learn PHP Script | Top 50 How PHP Script | Top 50 To PHP Script | Top 50 Create PHP Script | 2021 Top 50 Upload PHP Script | Top 50 Download PHP Script | Top 50 Delete PHP Script | Top 50 File PHP Script | Top 20 Using PHP Script | Top 20 Php PHP Script | Top 20 Mysql PHP Script | Top 10 Th PHP Script | Top 10 Simple PHP Script | Popular 100 Upload PHP Script | Popular 10 Download PHP Script | Popular 40 Delete PHP Script | Popular 100 File PHP Script | Popular 50 Using PHP Script | Popular 100 Php PHP Script | Popular 20 Mysql PHP Script | Best 100 Php PHP Script | Best 10 Script PHP Script | Best 100 Th PHP Script | Best 200 Article PHP Script | Best 500 we PHP Script | Best 5000 Going PHP Script | Popular 50 To PHP Script | 2021 New 50 Learn PHP Script | 2021 New 500 How PHP Script | 2021 New 1000 To PHP Script | 2021 Top 500 Create PHP Script | 2021 Best 500 Upload PHP Script | 2021 New 10 Download PHP Script | 2021 Popular 20 Delete PHP Script | 2021 New 1050 File PHP Script | 2021 Top 200 Using PHP Script | 2021 Top 4000 Php PHP Script | 2021 New 20 Mysql PHP Script | 2021 Best 100 Th PHP Script | 2021 Best 120 Simple PHP Script |

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *

Horje

Horje