if (isset ($ _ POST ['submit'])
{
if (! File_exists ("Uploads"))
{
makdir ("Uploads /");
}
$ base = basename ($ _ FILES ['image'] ['name']);
$ file_path ="Загружает /".$ base;
if (file_exists ($ file_path))
{
$ err [] =" Файл уже существует ";
$ uploadOk = 0;
}
else
{
$ uploadOk = 1;
move_uploaded_file ($ _ FILES ['image'] ['tmp_name'], $ file_path);
}
if ($ uploadOk == 1)
{
?>
"height =" 100 "width =" 100 ">
}
}