note 59840 added to function.imagefill

From: Date: Sat, 17 Dec 2005 17:59:08 +0000
Subject: note 59840 added to function.imagefill
Groups: php.notes 
Request: Send a blank email to php-notes+get-100339@lists.php.net to get a copy of this message
Slight correction to the example posted below by gelak mainly for newer PHP users. Ignore the two lines related to sessions (as below) as those aren't related to this image: - session_start(); - if ($_SESSION ['user']=="cica") { ...and everything from the else{} downwards. Then add in the following line at the top of the script... header("Content-type: image/png"); ...which tells the browser to treat it as a PNG image, and you should get the smiling face. Trev ---- Manual Page -- http://www.php.net/manual/en/function.imagefill.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59840 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59840&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59840&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59840&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59840&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59840&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59840&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59840&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59840&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#100339) next »