Есть функция(ресайзит и сохраняет фото) PHP: <? function get_photo($ext,$height,$width,$fname,$photo,$date2,$photodir) { if($ext == ".jpg" or $ext == ".jpeg") { $newwidth=185; $newheight=($height/$width)*185; $tmp=imagecreatetruecolor($newwidth,$newheight); $src = imagecreatefromjpeg($photo); imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height); @$kat = mkdir("$photodir/$date2", 0777); imagejpeg($tmp,$fname,85); imagedestroy($src); imagedestroy($tmp); } } get_photo(); //вызов функции ?> Выдаёт ошибки: Warning: Missing argument 1 for get_photo(), called in ... and defined in ...\get.php on line 3 Warning: Missing argument 2 for get_photo(), called in ... and defined in ...\get.php on line 3 Warning: Missing argument 3 for get_photo(), called in ... and defined in ...\get.php on line 3 Warning: Missing argument 4 for get_photo(), called in ... and defined in ...\get.php on line 3 Warning: Missing argument 5 for get_photo(), called in ... and defined in ...\get.php on line 3 Warning: Missing argument 6 for get_photo(), called in ... and defined in ...\get.php on line 3 Warning: Missing argument 7 for get_photo(), called in ... and defined in ...\get.php on line 3 NB! $ext,$height,$width,$fname,$photo,$date2,$photodir переменные изначально со своими значениями.