hey all this code says i am and dont working what make ?
[code]
list($width, $height) = getimagesize($file);
$sizex = 500;
$sizey = 500;
$dimg = imagecreate($sizex, $sizey);
$image = imagecreatetruecolor($width, $height);
$image2 = imagecreatefromjpeg($file);
imagecopyresampled($image, $image2, 0, 0, 0, 0, $sizex, $sizey, $width, $height);
imagejpeg($dimg, $tdir . $url, 75);
}
?>
[/code]