note 33895 added to function.imagepstext
| From: | heckp at rack1 dot php dot net | Date: | Thu, 10 Jul 2003 10:11:29 +0000 |
| Subject: | note 33895 added to function.imagepstext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-51843@lists.php.net to get a copy of this message | ||
It is important so make shure that the "text" really is a string.
imagepstext ($im, $text, $font, $textsize, $black, $white, 10, 10);
won't work if $text is undefined, so PHP will quit with an error.
so always write it like this:
imagepstext ($im, "$text", $font, $textsize, $black, $white, 10, 10);
----
Manual Page -- http://www.php.net/manual/en/function.imagepstext.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33895
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33895&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33895&report=yes