Salve a tutti/e,

deve essere una svista, ma non capisco perchè non funzioni:

Codice PHP:
     // Content type
     
header('Content-type: image/jpeg');
     
// Resample
     
$new_name $name.$tn_width."x".$tn_height;
     
$src imagecreatefromjpeg("uploads/$name");
     
$dst imagecreatetruecolor($tn_width$tn_height);
     
imagecopyresampled($dst$src0000$tn_width$tn_height$width$height);
     
     
imagejpeg($dst$new_name100); 
Cosa c'è che non va?