I would like to rename a jpeg file ($newfile_name) that is uploaded to add '_thumb' on the end before '.jpg'. The upload part works fine, I just need to figure out how to rename it. Heres a snippit of what I got:
//SAVE TO THUMBNAIL DIR
ImageCopyResized($im_out, $im_in, 0, 0, 0, 0, $new_width, $new_height, $size[0], $size[1]); $im=$corePath."/".$uploadPath."/thumbs/".$newfile_name;
imagejpeg($im_out,$im);
ImageDestroy($im_in);
ImageDestroy($im_out);
Thanks in advance!