move_uploaded_file($_FILES['uersfile']['tmp_name'], 'domains/blog/images/'.$_FILES['uersfile']['name']))
domains/blog/images/somefilename.ext
$uploaddir = '/blog/images/';
$uploadfile = $uploaddir . basename($_FILES['uersfile']['name']);
$row['PROPERTIES'] = [];
$row['PROPERTIES'] = ["LINK_TOVAR"];
while ($row = $rows->fetch()) {
$row['PROPERTIES'] = [];
$elements[$row['ID']] =& $row;
unset($row);
}
Просто начни писать проект на выбранном фреймворке. Сядь и начни.