<?php } else { $dir= "upload"; $file = $_FILES['userfile']['name']; chmod($file, 0644) $strUploadDir = generujHaslo() . '.' . $arr["extension"]; if($arr["extension"]=="gif" || $arr["extension"]=="jpg" || $arr["extension"]=="png" || $arr["extension"]=="jpeg" || $arr["extension"]=="GIF" || $arr["extension"]=="JPG" || $arr["extension"]=="PNG" || $arr["extension"]=="JPEG") { if ( $_COOKIE['login'] == 'yy' ) { mysql_query("INSERT INTO `wpisy` (`id`, `uid`, `name`) VALUES ('', '" . $_COOKIE['id_user'] . "', '" . $strUploadDir . "');" ); ?>
Co zrobiłem źle? Bo skrypt nie nadaje chmodów 644?