PDA

View Full Version : Store image in a folder


phpbaby
12/17/2005, 03:39
Hello all,

i created a dynamic image using

<?php
@header ("Content-type: image/jpeg");
$im = @imagecreate (30, 100)
or die ("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate ($im, 255, 255, 255);
$text_color = imagecolorallocate ($im, 233, 14, 91);
imagestringup ($im, 1, 10, 100, "A Simple Text String", $text_color);
@imagejpeg($im);

?>


I want this image to store in a folder & db and available for further use.

can any one help me.

olegk
12/17/2005, 05:57
there is a second parameter

bool imagejpeg ( resource image [, string filename [, int quality]] )

Enjoy! ;)