i’ve made this php function to resize picture , and i want to save it to folder but it can’t , what is the problem ?
function resize_sliku($slika,$sirina,$visina,$save){
list($width, $height) = getimagesize($slika) ;
$tn = imagecreatetruecolor($sirina, $visina) ;
$image = imagecreatefromjpeg($slika) ;
imagecopyresampled($tn, $image, 0, 0, 0, 0, $sirina, $visina, $width, $height) ;
imagejpeg($image, $save, 100) ;
}
$slika is the link of the picture , $sirina is the width , $visina is height and $save is the path to save..
Target folder is writable? Change permissions to 0777.
UPD: $save is absolute path?