php - Data Insert tool keep saying "mkdir(): File exists in" -
i have created admin user page data can inserted. everytime try execute says:
mkdir(): file exists in rental/search/add_property_2.php on line 98
here code:
$p_img9 = $_post['p_img9']; $p_img10 = $_post['p_img10'];*/ if (!file_exists('tmp_imgs/'.$property_id)) { // creating temprory directroy images mkdir('tmp_imgs/tmp_'.$property_id, 0777, true); ...line 98 } foreach ($_files['p_img']['name'] $f => $name) { $allowedexts = array("gif", "jpeg", "jpg", "png"); $temp = explode(".", $name); $extension = end($temp);
seeking on this
property id auto generated , on previous page defined as
$property_id = get_new_property_id();...
and second page getting error
$property_id = $_post['property_id'];..
your check condition doesn't match directory creating. can fix so
$directory = 'tmp_imgs/tmp_'.$property_id; if (!file_exists($directory)) { mkdir($directory, 0777, true); }
Comments
Post a Comment