ok
Direktori : /home2/selectio/public_html/wedding-info-new/admin/upload/ |
Current File : //home2/selectio/public_html/wedding-info-new/admin/upload/upload.php |
<?php $date = date('Y-m-d'); $filename = "" . $date . ""; if (!file_exists($filename)) { mkdir($filename); } //rmdir('upload/gane'); if(isset($_FILES['image']) && $_FILES["image"]["name"]!=""){ $dates=date('Y_m_d_h_m_s'); $extension = pathinfo($_FILES["image"]["name"], PATHINFO_EXTENSION); $image = $dates."_religion." . $extension; $upload = move_uploaded_file($_FILES['image']['tmp_name'], $filename.'/'. $image); echo 'upload/'.$upload_image = $filename.'/'. $image; /*$response['status']=$upload_image; echo json_encode($response);*/ } else{ /*$response['status']='No data Availale'; echo json_encode($response);*/ } ?>