Saving php created graphics [SOLVED]
Posted: Fri Sep 14, 2007 12:23 am
Can someone please tell me how I can save a php created image to another folder other than the php code folder? I desperately need to see code not a link. Thanks in advance.
Here is my code:
Here is my code:
Code: Select all
function makeimage ($title3, $im) {
$im = @imagecreate(110, 23) or die('Cannot Initialize new GD image stream.');
imagecolorallocate($im, 0, 57, 122);
$tc = imagecolorallocate($im, 255, 255, 255);
imagestring($im, 3, 10, 5, $name, $tc);
imagejpeg ($im, '/images/'.$title3.'btn.jpeg');
imagedestroy($im);
}
makeimage ($title3, $im);