Dear all;
i made page to write text on image but my problem is:
1.want to rename the name the new image (text on image)
2.want to insert this image into mysql database
this is the code create the image
error_reporting(E_STRICT);
$image=$_POST['background_name'];
$text=$_POST['text'];
$font=$_POST['font_name'];
$color=$_POST['text_color'];
$align=$_POST['text_alignment'];
$im = @imagecreatefromjpeg($image);
$width = imagesx($im);
$height = imagesy($im);
if($color==red)
{
$color = imagecolorallocate($im, 255, 0, 0);
}
else if($color==black)
{
$color = ImageColorAllocate($im, 0, 0, 0);
}
imagettftext($im, 20, 0, 100, 200, $color, $font, $text);
imagejpeg($im,"",100);
imagedestroy($im);
please help i wanna to know how to rename and save this image
thank you[/B]