<?php
/*
@Author: Hannan_Mondul
php( image)
2014
*/


if($im = imagecreate(200,200)){
$ba = imagecolorallocate($im,255,0,0);
imagerectangle($im,0,0,200,200,$ba);
imagejpeg($im);
header("Content-Type: image/jpeg");
imagedestroy($im);
}else{
throw new exception ("Sorry the GD Libary not set up");
}
}catch(exception $e){
    echo $e->getMessage();
}
?>

Code snippet without an explanation.... try harder.

Member Avatar

This guy's just posting snippets. Are we going to see a sig shortly ?

it work properly

Anyway, how does this work - braces are unbalanced - missing a 'try' block somewhere? Stupidity or ego? Anyway, I like prit's comment...

try harder.

heh heh.