将csv上传到mysql作为php中的背景

I upload the csv file by the help of JQuery but the problem is until the completion of that job,I can't do anything means if I leave the page, the process will be stop.That's why I want to know that- How to upload csv file into MySQL as background in php. At first, I upload the file from local machine to server then insert the file into MySQL database

In Java or C# it is easy for thread concept. but in PHP has no thread concept.

// fileuploader.php (is at C:xampp/htdocs)

$filename = “C:xampp/htdocs/file.xls”; // file to be uploaded
$destination=“www.xyz.com/destination”;
$isUploaded     = move_uploaded_file ( $filename , $destination ); // will upload the file

if($isUploaded) {
    // do the stuffs for writing the content to database
}

Now you have to run this file from windows task scheduler OR you can write a bash/shell script for executing the fileuploader.php in certain interval of time (once in a day or once in a minute )