<?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();
}
?>

whats your question

it work properly

Member Avatar for diafol

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.