diff --git a/Shota_pirtskhalava/display.php b/Shota_pirtskhalava/display.php new file mode 100644 index 0000000..47fb963 --- /dev/null +++ b/Shota_pirtskhalava/display.php @@ -0,0 +1,71 @@ + "image/jpg", + "jpeg" => "image/jpeg", + "gif" => "image/gif", + "png" => "image/png"); + $profile_image_url = NULL; + $ext = pathinfo($porfile_image, PATHINFO_EXTENSION); + if (!array_key_exists($ext, $allowed_ext)) { + $errorFile="please use JPG PNG JPEG GIF PNG"; + } + if(in_array($_FILES["profileimage"]["type"], $allowed_ext)) { + if(!file_exists($target_dir)) { + mkdir($target_dir); + } + if(move_uploaded_file($_FILES["profileimage"]["tmp_name"], $target_dir . $porfile_image) ){ + $profile_image_url = $target_dir.$porfile_image; + } + } + } + +} + + + + + + + + + + +?> + + + + + diff --git a/Shota_pirtskhalava/index.php b/Shota_pirtskhalava/index.php new file mode 100644 index 0000000..09dbb4a --- /dev/null +++ b/Shota_pirtskhalava/index.php @@ -0,0 +1,63 @@ + + +
+ +