mysql - extracting a zip file and accessing each content of the zip file and then move it to a new location in php -
i trying build application have upload zip file , extract contents , put them mysql database.i halfway successful in doing so..that uploaded zip file temporary folder named uploads....now want accessing each individual content , put in formation database , move real content original upload folder real_uploads....i trying iam not able figure out how proceed.... following below code........ <?php if(isset($_files['zip'])){ //defined error erray $errors=array(); $zip = new ziparchive(); //print_r($_files['zip']); //taking extention of last file (in lower case) of zip file if(strtolower(end(explode('.',$_files['zip']['name'])))!=='zip'){ $errors[]="this not zip file"; //echo "file not opened"; } //if file bigger 100mb if($_files['zip']['size']>104857600){ $errors[]="there size limit of 100 mb"; } if($zip->open($_fil...