logo
Blog single photo

Parse error: syntax error, unexpected T_STRING, expecting ']' in /usr/local/ampps/www/Debabrata/prac_frm_first.php


                        

<?php
if(isset($_POST["name1"])){
  $name=$_POST["name1"];
  $Password=$_POST["Password"];
  $con_password=$_POST["con_password"];
  $ph_Number=$_POST["ph_Number"];
  $email=$_POST["email"];
  //$new_file_path="uploads/".$_FILES['file']['name'];
  //chmod 777 $new_file_path;
  //move_uploaded_file($_FILES['file']['tmp_name'],$new_file_path);
  $folder = "uploads/";
   $file_img_profile = basename( $_FILES['file']['name']);
   $full_path_imagess = $folder.'Debabrata_img'.time().$file_img_profile;
   move_uploaded_file($_FILES['file']['tmp_name] ,$full_path_imagess);
}
?>

Sloved..



<?php
if(isset($_POST["name1"])){
  $name=$_POST["name1"];
  $Password=$_POST["Password"];
  $con_password=$_POST["con_password"];
  $ph_Number=$_POST["ph_Number"];
  $email=$_POST["email"];
  //$new_file_path="uploads/".$_FILES['file']['name']; 
  //chmod 777 $new_file_path;
  //move_uploaded_file($_FILES['file']['tmp_name'],$new_file_path);
  $folder = "uploads/";
   $file_img_profile = basename( $_FILES['file']['name']);
   $full_path_imagess = $folder.'Debabrata_img'.time().$file_img_profile;
   move_uploaded_file($_FILES['file']['tmp_name'] ,$full_path_imagess); 
}
?>





Top