$url"; header("location:$self"); exit; } # create image object $image = new imagick(); # try to create image from blob try { $image->readImageBlob("$blob"); $format = strtolower( $image->getimageformat() ); # header("content-type:image/$format"); # echo $image; # xxx $path = "temp/$ID.$_SESSION[views].$format"; $_SESSION[path] = $path; $image->writeimages("$path", TRUE ); header("location:display.php"); exit; } catch ( exception $e ) { $error = $e->getmessage(); } # if error is dedected, show it to user if ( $error ) { $_SESSION[error] = "ERROR: Some kind of error occured. The server says...

$error"; header("location:$self"); exit; } } ?> <? echo "$h1; $h2"; ?>

$h2"; } ?>
  Color Name Hexadecimal