Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Doesn't insert picture into map.

Status
Not open for further replies.

C0FFEE123

Programmer
Sep 1, 2008
44
NL
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);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top