Can anyone tell me why this isn't working?
This should insert the uploaded file into a map.
I don't get a error but this script isn't insert it into my map.
$uploadedfile = $_FILES['plaatje_m']['tmp_name'];
$src = imagecreatefromjpeg($uploadedfile);
list($width,$height)=getimagesize($uploadedfile);
$newwidth=300;
$newheight=($height/$width)*300;
$tmp=imagecreatetruecolor($newwidth,$newheight);
imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);
$filename = "../occasions/fotos_medium". $_FILES['plaatje_m']['name'];
imagejpeg($tmp,$filename,100);
This should insert the uploaded file into a map.
I don't get a error but this script isn't insert it into my map.
$uploadedfile = $_FILES['plaatje_m']['tmp_name'];
$src = imagecreatefromjpeg($uploadedfile);
list($width,$height)=getimagesize($uploadedfile);
$newwidth=300;
$newheight=($height/$width)*300;
$tmp=imagecreatetruecolor($newwidth,$newheight);
imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);
$filename = "../occasions/fotos_medium". $_FILES['plaatje_m']['name'];
imagejpeg($tmp,$filename,100);