note 32916 added to function.rand
| From: | az_mail at gmx dot at | Date: | Tue, 10 Jun 2003 22:02:05 +0000 |
| Subject: | note 32916 added to function.rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50129@lists.php.net to get a copy of this message | ||
this is very nice :p
<?php
header ("Content-type: image/png");
$test = crypt(rand());
$im = @ImageCreate (100, 20)
or die ("Kann keinen neuen GD-Bild-Stream erzeugen");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, rand(0, 255), rand(0, 255), rand(0, 255))
ImageString ($im, 1, 4, 4, "$test", $text_color);
ImagePNG ($im);
?>
----
Manual Page -- http://www.php.net/manual/en/function.rand.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32916
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32916&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32916&report=yes