note 106241 added to class.domainexception

From: Date: Thu, 20 Oct 2011 19:45:15 +0000
Subject: note 106241 added to class.domainexception
Groups: php.notes 
Request: Send a blank email to php-notes+get-184034@lists.php.net to get a copy of this message
<?php function renderImage($imageResource, $imageType) { switch ($imageType) { case 'jpg': case 'jpeg': header('Content-type: image/jpeg'); imagejpeg($imageResource); break; case 'png': header('Content-type: image/png'); imagepng($imageResource); break; default: throw new DomainException('Unknown image type: ' . $imageType); break; } imagedestroy($imageResource); } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 83.10.83.190 ---- Manual Page -- http://www.php.net/manual/en/class.domainexception.php Edit -- https://master.php.net/note/edit/106241 Del: integrated -- https://master.php.net/note/delete/106241/integrated Del: useless -- https://master.php.net/note/delete/106241/useless Del: bad code -- https://master.php.net/note/delete/106241/bad+code Del: spam -- https://master.php.net/note/delete/106241/spam Del: non-english -- https://master.php.net/note/delete/106241/non-english Del: in docs -- https://master.php.net/note/delete/106241/in+docs Del: other reasons-- https://master.php.net/note/delete/106241 Reject -- https://master.php.net/note/reject/106241 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184034) next »