im trying to make an automatic thumbnail when people upload an image.. cant seem to get it working quite right.. i can make the thumbnail i just cant figure out how to get it to save to my server!
$dst_img=ImageCreate($new_w,$new_h);
$src_img=ImageCreateFromJpeg($new_file);
ImageCopyResized($dst_img,$src_img,0,0,0,0,$new_w,$new_h,ImageSX($src_img),ImageSY($src_img));
ImageJpeg($dst_img);
what am i missing or what dont i need? before i just had this script running on th server every time a picture was brought up.. but i figure its better just to make the thumbnail on upload!