note 62134 added to ref.image

From: Date: Tue, 21 Feb 2006 01:41:31 +0000
Subject: note 62134 added to ref.image
Groups: php.notes 
Request: Send a blank email to php-notes+get-104099@lists.php.net to get a copy of this message
If your PHP script is used in a <IMG SRC="..."> tag, you may want to use the following snippet in cases where you do not want to show an image at all (e.g. when no image found, or an error condition occurred): <? // no image found, output a 1 pixel transparent GIF header('Content-type: image/gif'); $shim = '47494638396101000100800000ffffff00000021f9040114' .'0000002c00000000010001000002024401003b'; print pack('H*', $shim); ?> It saves you loading external image files, generating complex error images, etc. - Stan WatchMouse Site Monitoring http://www.watchmouse.com/ ---- Server IP: 83.137.20.120 Probable Submitter: 80.126.145.170 ---- Manual Page -- http://www.php.net/manual/en/ref.image.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+62134 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+62134&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+62134&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+62134&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+62134&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+62134&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+62134&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+62134&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+62134&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104099) next »