note 80754 added to function.imagestring
| From: | Anonymous at osu1 dot php dot net | Date: | Wed, 30 Jan 2008 17:31:16 +0000 |
| Subject: | note 80754 added to function.imagestring | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135623@lists.php.net to get a copy of this message | ||
<?php
header("Content-type: image/png");
$string = $_GET['text'];
$im = imagecreatefrompng("button1.png");
$color = imagecolorallocate($im, 0, 0, 0);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $color);
imagepng($im);
imagedestroy($im);
?>
this code you can write the string within the url by a $_get function
----
Server IP: 209.41.74.194
Probable Submitter: 98.226.174.6
----
Manual Page -- http://www.php.net/manual/en/function.imagestring.php
Edit -- https://master.php.net/note/edit/80754
Del: integrated -- https://master.php.net/note/delete/80754/integrated
Del: useless -- https://master.php.net/note/delete/80754/useless
Del: bad code -- https://master.php.net/note/delete/80754/bad+code
Del: spam -- https://master.php.net/note/delete/80754/spam
Del: non-english -- https://master.php.net/note/delete/80754/non-english
Del: in docs -- https://master.php.net/note/delete/80754/in+docs
Del: other reasons-- https://master.php.net/note/delete/80754
Reject -- https://master.php.net/note/reject/80754
Search -- https://master.php.net/manage/user-notes.php