Mam problem z zapisem pliku poprzez taki kodzik:
<?php $file = 'File'.$licz; $width = 500; $height = 500; $images_res = $_FILES[$file]['tmp_name']; $path_res = '../images/'; $name = $_FILES[$file]['name']; $filename = $images_res; $ratio_orig = $width_orig/$height_orig; if ($width/$height > $ratio_orig) { $width = $height*$ratio_orig; } else { $height = $width/$ratio_orig; } $image_p = imagecreatetruecolor($width, $height); $image = imagecreatefromjpeg($filename); imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig); // Output imagejpeg($image_p, $path_res . $conf, 75); ?>
Wyświetla mi błąd :
Cytat
Warning: imagejpeg() [function.imagejpeg]: Unable to open '../images/' for writing: No such file or directory in (...)
Oczywiście na folder images ustawiłem prawa 777.
Pozdrawiam!