zarapatamm's Profile
Default
16
Points

Questions
8

Answers
3

  • The elaboration form or the full form of SMTP is Simple Mail Transfer Protocol. SMTP is an Internet standard for electronic mail (email) transmission. First defined by RFC 821 in 1982, it was updated in 2008 with Extended SMTP additions by RFC 5321, which is the protocol in widespread use today.

    Read details
    Function of SMTP

    • 1706 views
    • 1 answers
    • 0 votes
  • Default Asked on September 30, 2018 in Programming.

    Hello, thanks for your questions,
    I will show you how to upload multiple files in PHP with add and remove/delete options using PHP, javascript, and jquery. I have generated my personal PHP script which is very easy to understand and setup is also easy for any developers or users. You just need to follow the steps below.

    I have fixed the add and delete/remove options also for multiple files upload in PHP. You can see the demo at the bottom of the page. Let’s start the tutorial.

    Follow the steps for upload multiple files in php with add and remove options

    Step 1: Create one “index.php” file and make one folder named “uploads” in your server
    First of all, you need to create one file name “index.php” and create one folder name “uploads”.
    Uploads folder is used for store all the uploaded files.

    Step 2: Copy the below code and paste in “index.php”
    The second step is you just need to copy the below code and paste it in your “index.php” file because This code is created by me and I have used the jquery for add new files and remove/delete selected files.
    That’s it you can now execute the code and upload multiple files in PHP with add and remove/delete options using PHP, javascript, and jquery.


    
    <?php
    
    ini_set("error_reporting", 1);
    
    if(isset($_POST['btnSubmit']))
    
    {
    
    for ($i = 0; $i < count($_FILES['files']['name']); $i++)
    
    {
    
    if ($_FILES["files"]["size"][$i] < 1000000) // Check File size (Allow 1MB)
    
    {
    
    $temp = $_FILES["files"]["tmp_name"][$i];
    
    $name = $_FILES["files"]["name"][$i];
    
    if(empty($temp))
    
    {
    
    break;
    
    }
    
    if($i == 0){ $err = "File uploaded successfully"; $cls = "success"; }
    
    move_uploaded_file($temp,"img/".$name);
    
    }
    
    else
    
    {
    
    $err = "File size is more than 1MB";
    
    $cls = "danger";
    
    }
    
    }
    
    }
    
    ?>
    
    <html>
    
    <head>
    
    <style>
    
    body{ font-family:sans-serif; }
    
    table, th, td {
    
    border: 1px solid black;
    
    border-collapse: collapse;
    
    }
    
    .success{ color: green;}
    
    .danger{ color: red;}
    
    </style>
    
    </head>
    
    <body>
    
    <center>
    
    <form method='post' enctype='multipart/form-data'>
    
    <table id="table" width="50%">
    
    <thead>
    
    <tr class="text-center">
    
    <th colspan="3" style="height:50px;">Mutiple File Upload Script</th>
    
    </tr>
    
    </thead>
    
    <tbody>
    
    <tr class="add_row">
    
    <td id="no" width="5%">#</td>
    
    <td width="75%"><input class="file" name='files[]' type='file' multiple /></td>
    
    <td width="20%"></td>
    
    </tr>
    
    </tbody>
    
    <tfoot>
    
    <tr>
    
    <td colspan="4">
    
    <button class="btn btn-success btn-sm" type="button" id="add" title='Add new file'/>Add new file</button>
    
    </td>
    
    </tr>
    
    <tr class="last_row">
    
    <td colspan="4" style="text-align:center;">
    
    <button class="btn btn-primary submit" name="btnSubmit" type='submit'>Upload</button>
    
    </td>
    
    </tr>
    
    </tfoot>
    
    </table>
    
    </form>
    
    <br><br><br><br>
    
    <h2 class="<?php echo $cls; ?>"><?php echo $err; ?></h2>
    
    </center>
    
    https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
    $(document).ready(function(){
    
    // Validation
    
    $('.submit').click(function(){
    
    var file_val = $('.file').val();
    
    if(file_val == "")
    
    {
    
    alert("Please select at least one file.");
    
    return false;
    
    }
    
    else{
    
    $('form').attr('action', 'index.php');
    
    }
    
    });
    // Append new row
    
    $('#table').on('click', "#add", function(e) {
    
    $('tbody').append('
    
    #
    
    
    ');
    
    e.preventDefault();
    
    });
    // Delete row
    
    $('#table').on('click', "#delete", function(e) {
    
    if (!confirm("Are you sure you want to delete this file?"))
    
    return false;
    
    $(this).closest('tr').remove();
    
    e.preventDefault();
    
    });
    
    });
    </body>
    
    </html>
    

    I hope you will like this tutorial and enjoyed it. If you have any questions then ask me again.

    • 1052 views
    • 1 answers
    • 0 votes
  • Thanks you very much for your valuable question. Now a days most of the Guardians are depends on private tutor. is it effective?

    How A Tutor Can Help Improve Your Child’s Performance In School?

    Let’s me discuses on it.  I will tell you from my own experience.

    Home tuition services are one of the thriving industries in this period where numerous parents are very much apprehensive with the performance of their kids in school.

    Not only parents are apprehensive as regards their little one’s educational position, they are also attentive to the need to come up with good study practice during the early age. It is an efficient hint that parents are becoming increasingly more caught up concerning the improvement of their kids. However, in view of the fact that parents have learned a great deal of information about child development, several of them respond more than they should after realizing about their kids’ poor accomplishment in school. With the intention to manage these problems, they hire a tutor for their kids to appropriately direct them in their studies.

    A home tutor is correctly educated and trained to look after the academic requirements and help of school kids. They endow with proper impetus and back up according to the nature and requirements of the kid. During the old times, a tutor was employed to aid a failing pupil deal with the stress of his every day lessons. But currently, things have transformed. Not just those academically challenged obtain the services of a tutor, but additionally those who are on top of their classes because they want to keep up their marks in an effort to keep their winning class position.

    Specialists believe that the parents are the most effective teachers for their young ones. Their presence, assistance and support can establish considerable encouraging outcome when it comes to school progress of their kids. However, you will find parents who have to go to work so as to create a source of revenue and enroll their children to respectable educational institutions. Additionally, there are lots of parents who find it difficult to teach their children the teachings tackled at school, not because they are not intelligent enough, but as a consequence of the fact that not all people are given the ability to actually instruct a youngster.

    Teaching is seemingly uncomplicated for some; on the contrary there are people who find it troublesome to undertake the task. This is one of the reason why a tutor should be hired. They are surely familiar in handling the necessities of a kid when it comes to academics.

    To encourage the children under their tutelage to develop a healthy curiosity in the stuff that happen around them is the best quality that a science tutor should have. You never know but when your child’s natural curiosity is developed, he or she may become a notable personality in the future.

    Parents in Singapore are known for the reputation on taking care of their child. Look for Singapore Tutors Specialist that helps your child enhance his/her brain while they are young.. This article, How A Tutor Can Help Improve Your Child’s Performance In School has free reprint rights.

    • 1027 views
    • 1 answers
    • 0 votes